Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
__define_runner(symbol)
public
Generate the internal runner method called by run_callbacks.
# File activesupport/lib/active_support/callbacks.rb, line 380
def __define_runner(symbol) #:nodoc:
runner_method = "_run_#{symbol}_callbacks"
unless private_method_defined?(runner_method)
class_eval def #{runner_method}(key = nil, &blk) self.class.__run_callback(key, :#{symbol}, self, &blk) end private :#{runner_method}, __FILE__, __LINE__ + 1
end
end