Class: SunspotActiveRecord::Adapters::ActiveRecordInstanceAdapter

Inherits:
Sunspot::Adapters::InstanceAdapter
  • Object
show all
Defined in:
lib/sunspot_activerecord/adapters.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) id

Return the primary key for the adapted instance

Returns

Integer

Database ID of model



15
16
17
# File 'lib/sunspot_activerecord/adapters.rb', line 15

def id
  @instance.id
end