Permalink
Browse files

just call the class method since we know the callbacks are stored at the

class level
  • Loading branch information...
1 parent 920753f commit 55975c71ec9c2c18b67020484959ff5c69d4d3fb @tenderlove tenderlove committed May 15, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/lib/active_support/callbacks.rb
@@ -76,7 +76,8 @@ module Callbacks
# 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

0 comments on commit 55975c7

Please sign in to comment.