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