Class: Sunspot::Rails::Adapters::ActiveResourceInstanceAdapter
- Inherits:
-
Adapters::InstanceAdapter
- Object
- Adapters::InstanceAdapter
- Sunspot::Rails::Adapters::ActiveResourceInstanceAdapter
- Defined in:
- lib/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
29 30 31 |
# File 'lib/sunspot/rails/adapters.rb', line 29 def id @instance.id end |