Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use extlib accessor for new callbacks

  • Loading branch information...
commit 67f9b39bd05678881e200ddeed02b2bce9744ac8 1 parent 72b365e
@wycats wycats authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/new_callbacks.rb
View
4 activesupport/lib/active_support/new_callbacks.rb
@@ -420,10 +420,10 @@ def _run__#{klass.split("::").last}__#{kind}__#{key}__callbacks
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)
Please sign in to comment.
Something went wrong with that request. Please try again.