Class: Sunspot::Mongoid::DataAccessor

Inherits:
Adapters::DataAccessor
  • Object
show all
Defined in:
lib/sunspot/mongoid.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) load(id)



34
35
36
# File 'lib/sunspot/mongoid.rb', line 34

def load(id)
  criteria(id).first
end

- (Object) load_all(ids)



38
39
40
# File 'lib/sunspot/mongoid.rb', line 38

def load_all(ids)
  criteria(ids)
end