Module: Tire::Model::Import::ClassMethods

Included in:
Search::ClassMethodsProxy
Defined in:
lib/tire/model/import.rb

Instance Method Summary collapse

Instance Method Details

#import(options = {}, &block) ⇒ Object



20
21
22
23
# File 'lib/tire/model/import.rb', line 20

def import options={}, &block
  strategy = Strategy.from_class(klass, options)
  strategy.import &block
end