Class: SunspotActiveRecord::Adapters::ActiveRecordInstanceAdapter
- Inherits:
-
Sunspot::Adapters::InstanceAdapter
- Object
- Sunspot::Adapters::InstanceAdapter
- SunspotActiveRecord::Adapters::ActiveRecordInstanceAdapter
- Defined in:
- lib/sunspot_activerecord/adapters.rb
Instance Method Summary (collapse)
-
- (Object) id
Return the primary key for the adapted instance.
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 |