def on_load(name, options = {}, &block)
      @loaded[name].each do |base|
        execute_hook(name, base, options, block)
      end

      @load_hooks[name] << [block, options]
    end
def on_load(name, options = {}, &block)
      @loaded[name].each do |base|
        execute_hook(name, base, options, block)
      end

      @load_hooks[name] << [block, options]
    end
Declares a block that will be executed when a Rails component is fully
 loaded.

 Options:

 * <tt>:yield</tt> - Yields the object that run_load_hooks to +block+.
 * <tt>:run_once</tt> - Given +block+ will run only once.