method
on_load
v3.2.1 -
Show latest stable
- Class:
ActiveSupport
on_load(name, options = {}, &block)public
No documentation available.
# File activesupport/lib/active_support/lazy_load_hooks.rb, line 24
def self.on_load(name, options = {}, &block)
if base = @loaded[name]
execute_hook(base, options, block)
else
@load_hooks[name] << [block, options]
end
end