Class: Sunspot::Rails::Adapters::ActiveRecordInstanceAdapter
- Inherits:
-
Adapters::InstanceAdapter
- Object
- Adapters::InstanceAdapter
- Sunspot::Rails::Adapters::ActiveRecordInstanceAdapter
- Defined in:
- lib/active_record_sunspotter/sunspot_rails_2.1.0_sunspot_rails_adapters.rb
Instance Method Summary collapse
-
#id ⇒ Object
Return the primary key for the adapted instance.
Instance Method Details
#id ⇒ Object
Return the primary key for the adapted instance
Returns
- Integer
-
Database ID of model
16 17 18 |
# File 'lib/active_record_sunspotter/sunspot_rails_2.1.0_sunspot_rails_adapters.rb', line 16 def id @instance.id end |