method

run_load_hooks

rails latest stable - Class: ActiveSupport::LazyLoadHooks
run_load_hooks(name, base = Object)
public

Executes all blocks registered to name via on_load, using base as the evaluation context.

ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base)

In the case of the above example, it will execute all hooks registered for :active_record within the class +ActiveRecord::Base+.