Module: Rethinker::Autoload

Includes:
ActiveSupport::Autoload
Included in:
Rethinker, Document, QueryRunner, Relation, Selection
Defined in:
lib/rethinker/autoload.rb

Instance Method Summary collapse

Instance Method Details

#autoload(*args) ⇒ Object



4
5
6
# File 'lib/rethinker/autoload.rb', line 4

def autoload(*args)
  args.each { |mod| super mod }
end

#autoload_and_include(*mods) ⇒ Object



8
9
10
11
12
13
# File 'lib/rethinker/autoload.rb', line 8

def autoload_and_include(*mods)
  mods.each do |mod|
    autoload mod
    include const_get mod
  end
end