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