Class: Sunspot::Rails::Adapters::MongoidInstanceAdapter

Inherits:
Adapters::InstanceAdapter
  • Object
show all
Defined in:
lib/sunspot/rails/adapters.rb

Instance Method Summary collapse

Instance Method Details

#idObject

Return the primary key for the adapted instance

Returns

Integer

Database ID of model



26
27
28
# File 'lib/sunspot/rails/adapters.rb', line 26

def id
  @instance.id
end