diff options
author | Sokolov Yura <funny.falcon@gmail.com> | 2012-02-14 15:05:45 +0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-20 10:02:41 -0800 |
commit | 0c0f278ab20f3042cdb69604166e18a61f8605ad (patch) | |
tree | cde72cfdb5ba10577c8f70fc1cba2a0c3b949ad9 | |
parent | 41c182c368eded5b62eb1f4945aa7e090bf2b811 (diff) | |
download | rails-0c0f278ab20f3042cdb69604166e18a61f8605ad.tar.gz rails-0c0f278ab20f3042cdb69604166e18a61f8605ad.tar.bz2 rails-0c0f278ab20f3042cdb69604166e18a61f8605ad.zip |
sync __run_callbacks with ruby-trunk
https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/34580
In this revision behavior of respond_to? had changed: now to ask about
protected method one should pass second argument `true`
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index f5fd86bf74..a3c956f380 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -395,7 +395,7 @@ module ActiveSupport # def __run_callback(key, kind, object, &blk) #:nodoc: name = __callback_runner_name(key, kind) - unless object.respond_to?(name) + unless object.respond_to?(name, true) str = object.send("_#{kind}_callbacks").compile(key, object) class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 def #{name}() #{str} end |