Class: Sunspot::Rails::Adapters::ActiveResourceInstanceAdapter

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



29
30
31
# File 'lib/sunspot/rails/adapters.rb', line 29

def id
  @instance.id
end