Module: Draper::QueryMethods::LoadStrategy

Defined in:
lib/draper/query_methods/load_strategy.rb

Defined Under Namespace

Classes: ActiveRecord, Mongoid

Class Method Summary collapse

Class Method Details

.new(name) ⇒ Object



4
5
6
# File 'lib/draper/query_methods/load_strategy.rb', line 4

def self.new(name)
  const_get(name.to_s.camelize).new
end