This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
__run_callback(key, kind, object, &blk)
public
This method calls the callback method for the given key. If this called
first time it creates a new callback method for the key, calculating which
callbacks can be omitted because of per_key conditions.
# File activesupport/lib/active_support/callbacks.rb, line 396
def __run_callback(key, kind, object, &blk) #:nodoc:
name = __callback_runner_name(key, kind)
unless object.respond_to?(name, true)
str = object.send("_#{kind}_callbacks").compile(key, object)
class_eval def #{name}() #{str} end protected :#{name}, __FILE__, __LINE__ + 1
end
object.send(name, &blk)
end