16
17
18
19
20
|
# File 'lib/tire/model/import.rb', line 16
def import options={}, &block
options = { :method => 'paginate' }.update options
index = options[:index] ? Tire::Index.new(options.delete(:index)) : self.index
index.import klass, options, &block
end
|