Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5226

Show
Ignore:
Timestamp:
10/04/06 15:43:31 (3 years ago)
Author:
minam
Message:

callbacks that return false should cause save to return false

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/base.rb

    r5215 r5226  
    17661766      def create_or_update 
    17671767        raise ReadOnlyRecord if readonly? 
    1768         if new_record? then create else update end 
    1769         tru
     1768        result = new_record? ? create : update 
     1769        result != fals
    17701770      end 
    17711771