Module: Slingshot::Model::Import::ClassMethods

Defined in:
lib/slingshot/model/import.rb

Instance Method Summary collapse

Instance Method Details

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



8
9
10
11
# File 'lib/slingshot/model/import.rb', line 8

def import options={}, &block
  method = options.delete(:method) || 'paginate'
  self.index.import self, method, options, &block
end