This method is deprecated or moved on the latest stable version.
The last existing version (v3.1.0) is shown here.
__create_keyed_callback(name, kind, object, &blk)
public
This is called the first time a callback is called with a particular key.
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 400
def __create_keyed_callback(name, kind, object, &blk) #:nodoc:
@_keyed_callbacks ||= {}
@_keyed_callbacks[name] ||= begin
str = send("_#{kind}_callbacks").compile(name, object)
class_eval def #{name}() #{str} end protected :#{name}, __FILE__, __LINE__ + 1
true
end
end