module ActiveSupport::LazyLoadHooks
def run_load_hooks(name, base = Object)
In the case of the above example, it will execute all hooks registered
ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base)
evaluation context.
Executes all blocks registered to +name+ via on_load, using +base+ as the
def run_load_hooks(name, base = Object) @loaded[name] << base @load_hooks[name].each do |hook, options| execute_hook(name, base, options, hook) end end