method

run_load_hooks

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: 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+.

Show source
Register or log in to add new notes.