From 67f9b39bd05678881e200ddeed02b2bce9744ac8 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Thu, 12 Mar 2009 13:18:31 -0600 Subject: Use extlib accessor for new callbacks --- activesupport/lib/active_support/new_callbacks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib/active_support') 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) -- cgit v1.2.3