method
on_load
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::LazyLoadHooks
on_load(name, options = {}, &block)public
Declares a block that will be executed when a Rails component is fully loaded.
-
:yield - Yields the object that run_load_hooks to block.
-
:run_once - Given block will run only once.