Method: ActiveSupport::LazyLoadHooks.extended

Defined in:
lib/active_support/lazy_load_hooks.rb

.extended(base) ⇒ Object

:nodoc:



26
27
28
29
30
31
32
# File 'lib/active_support/lazy_load_hooks.rb', line 26

def self.extended(base) # :nodoc:
  base.class_eval do
    @load_hooks = Hash.new { |h, k| h[k] = [] }
    @loaded     = Hash.new { |h, k| h[k] = [] }
    @run_once   = Hash.new { |h, k| h[k] = [] }
  end
end