public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Callbacks fire before notifying observers [#230 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
cdemyanovich (author)
Tue Jun 03 11:38:00 -0700 2008
josh (committer)
Tue Jun 03 11:38:00 -0700 2008
commit  aa1771668877f20ca044e8f45a9736fbb7c8402e
tree    8144566f85fcff4c94e6ccd993ad35c6d4688a1c
parent  a977f3e88e989cd7d795c46504451b4b1b4db79d
...
293
294
295
296
297
298
299
300
301
302
303
 
 
304
305
306
...
293
294
295
 
 
296
297
298
299
300
301
302
303
304
305
306
0
@@ -293,14 +293,14 @@ module ActiveRecord
0
 
0
     private
0
       def callback(method)
0
-        notify(method)
0
-
0
         result = run_callbacks(method) { |result, object| result == false }
0
 
0
         if result != false && respond_to_without_attributes?(method)
0
           result = send(method)
0
         end
0
 
0
+        notify(method)
0
+
0
         return result
0
       end
0
 

Comments