Class: Sunspot::DSL::Query

Inherits:
FieldQuery
  • Object
show all
Defined in:
lib/plugins/ext/sunspot/start_record.rb

Instance Method Summary collapse

Instance Method Details

#start_record(options = {}) ⇒ Object

Raises:

  • (ArgumentError)


47
48
49
50
51
52
# File 'lib/plugins/ext/sunspot/start_record.rb', line 47

def start_record(options = {})
  start = options.delete(:start)
  maximum = options.delete(:maximum)
  raise ArgumentError, "unknown argument #{options.keys.first.inspect} passed to paginate" unless options.empty?
  @query.start_record(start, maximum)
end