aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-16 14:19:36 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-16 14:19:50 -0700
commit156e2e3fd83ea6aa96a92149fefab37b4d6fdbf8 (patch)
tree180e5d8518a441a3867d96186d8bf12eba72e260 /activesupport/lib
parent8f2b1a12dc10c6879afcdb6bc89ab6413b163e0c (diff)
downloadrails-156e2e3fd83ea6aa96a92149fefab37b4d6fdbf8.tar.gz
rails-156e2e3fd83ea6aa96a92149fefab37b4d6fdbf8.tar.bz2
rails-156e2e3fd83ea6aa96a92149fefab37b4d6fdbf8.zip
Revert "just call the class method since we know the callbacks are stored at the"
This reverts commit 55975c71ec9c2c18b67020484959ff5c69d4d3fb.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/callbacks.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index 37a184ed6d..bbfa74f98d 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -76,8 +76,7 @@ module ActiveSupport
# save
# end
def run_callbacks(kind, &block)
- cbs = self.class.send("_#{kind}_callbacks")
-
+ cbs = send("_#{kind}_callbacks")
if cbs.empty?
yield if block_given?
else