method

on_load

on_load(name, options = {}, &block)
public

No documentation available.

# File activesupport/lib/active_support/lazy_load_hooks.rb, line 24
  def self.on_load(name, options = {}, &block)
    if base = @loaded[name]
      execute_hook(base, options, block)
    else
      @load_hooks[name] << [block, options]
    end
  end