method

on_load

Importance_1
v7.0.0 - Show latest stable - 0 notes - Class: LazyLoadHooks
on_load(name, options = {}, &block) public

Declares a block that will be executed when a Rails component is fully loaded.

Options:

  • :yield - Yields the object that run_load_hooks to block.

  • :run_once - Given block will run only once.

Show source
Register or log in to add new notes.