diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-03-12 13:18:31 -0600 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-03-12 13:18:31 -0600 |
commit | 67f9b39bd05678881e200ddeed02b2bce9744ac8 (patch) | |
tree | 453feaec75bfc02c0b753d872617f3034c0e3112 | |
parent | 72b365ece9322b323203ef423aef4554b1b27bbc (diff) | |
download | rails-67f9b39bd05678881e200ddeed02b2bce9744ac8.tar.gz rails-67f9b39bd05678881e200ddeed02b2bce9744ac8.tar.bz2 rails-67f9b39bd05678881e200ddeed02b2bce9744ac8.zip |
Use extlib accessor for new callbacks
-rw-r--r-- | activesupport/lib/active_support/new_callbacks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/new_callbacks.rb b/activesupport/lib/active_support/new_callbacks.rb index 5f1afc9b3c..65d2ddac32 100644 --- a/activesupport/lib/active_support/new_callbacks.rb +++ b/activesupport/lib/active_support/new_callbacks.rb @@ -420,10 +420,10 @@ module ActiveSupport def define_callbacks(*symbols) terminator = symbols.pop if symbols.last.is_a?(String) symbols.each do |symbol| - self.class_inheritable_accessor("_#{symbol}_terminator") + self.extlib_inheritable_accessor("_#{symbol}_terminator") self.send("_#{symbol}_terminator=", terminator) self.class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 - class_inheritable_accessor :_#{symbol}_callbacks + extlib_inheritable_accessor :_#{symbol}_callbacks self._#{symbol}_callbacks = CallbackChain.new(:#{symbol}) def self.#{symbol}_callback(*filters, &blk) |