aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
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 8e3aac6e36..fb428c3f31 100755
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -345,9 +345,9 @@ module ActiveRecord
return false if result == false
end
- send(method) if respond_to_without_attributes?(method)
+ result = send(method) if respond_to_without_attributes?(method)
- return true
+ return result
end
def callbacks_for(method)