Permalink
Browse files

Merge pull request #5039 from funny-falcon/fix_callback

sync __run_callbacks with ruby-trunk
  • Loading branch information...
2 parents 7f6ee93 + 1076c88 commit fa04a737d565c7f06bcac875b4707a01c04acf84 @josevalim josevalim committed Feb 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/callbacks.rb
@@ -356,7 +356,7 @@ module ClassMethods
#
def __run_callbacks(kind, object, &blk) #:nodoc:
name = __callback_runner_name(kind)
- unless object.respond_to?(name)
+ unless object.respond_to?(name, true)
str = object.send("_#{kind}_callbacks").compile
class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
def #{name}() #{str} end

0 comments on commit fa04a73

Please sign in to comment.