aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
authorCraig Demyanovich <cdemyanovich@mutuallyhuman.com>2008-06-03 13:38:00 -0500
committerJoshua Peek <josh@joshpeek.com>2008-06-03 13:38:00 -0500
commitaa1771668877f20ca044e8f45a9736fbb7c8402e (patch)
tree8144566f85fcff4c94e6ccd993ad35c6d4688a1c /activerecord/lib/active_record/callbacks.rb
parenta977f3e88e989cd7d795c46504451b4b1b4db79d (diff)
downloadrails-aa1771668877f20ca044e8f45a9736fbb7c8402e.tar.gz
rails-aa1771668877f20ca044e8f45a9736fbb7c8402e.tar.bz2
rails-aa1771668877f20ca044e8f45a9736fbb7c8402e.zip
Callbacks fire before notifying observers [#230 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rwxr-xr-xactiverecord/lib/active_record/callbacks.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index 41ec5c5e61..4edc209c65 100755
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -293,14 +293,14 @@ module ActiveRecord
private
def callback(method)
- notify(method)
-
result = run_callbacks(method) { |result, object| result == false }
if result != false && respond_to_without_attributes?(method)
result = send(method)
end
+ notify(method)
+
return result
end