module ActiveSupport::LazyLoadHooks

def run_load_hooks(name, base = Object)

for +:active_record+ within the class +ActiveRecord::Base+.
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