diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-16 20:23:44 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-16 20:23:44 -0500 |
commit | d8a72b32c5b0c32abf257f05b89bad7d21f178ec (patch) | |
tree | d4e9fb6ec455589164459cdc2f5ae35765c95c72 /activesupport/lib | |
parent | 40dbebba28bfa1c55737da7354542c3bdca4e1a1 (diff) | |
download | rails-d8a72b32c5b0c32abf257f05b89bad7d21f178ec.tar.gz rails-d8a72b32c5b0c32abf257f05b89bad7d21f178ec.tar.bz2 rails-d8a72b32c5b0c32abf257f05b89bad7d21f178ec.zip |
Revert "Run callbacks from object's metaclass"
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index f125a56246..9c59b7ac76 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -269,15 +269,7 @@ module ActiveSupport # pass # stop def run_callbacks(kind, options = {}, &block) - callback_chain_method = "#{kind}_callback_chain" - - # Meta class inherits Class so we don't have to merge it in 1.9 - if RUBY_VERSION >= '1.9' - metaclass.send(callback_chain_method).run(self, options, &block) - else - callbacks = self.class.send(callback_chain_method) | metaclass.send(callback_chain_method) - callbacks.run(self, options, &block) - end + self.class.send("#{kind}_callback_chain").run(self, options, &block) end end end |