Generate the internal runner method called by run_callbacks.
# File activesupport/lib/active_support/callbacks.rb, line 372
def __define_runner(symbol) #:nodoc:
body = send("_#{symbol}_callbacks").compile
silence_warnings do
undef_method "_run_#{symbol}_callbacks" if method_defined?("_run_#{symbol}_callbacks")
class_eval def _run_#{symbol}_callbacks(key = nil, &blk) if key name = "_run__\#{self.class.name.hash.abs}__#{symbol}__\#{key.hash.abs}__callbacks" unless respond_to?(name) self.class.__create_keyed_callback(name, :#{symbol}, self, &blk) end send(name, &blk) else #{body} end end private :_run_#{symbol}_callbacks, __FILE__, __LINE__ + 1
end
end