class Sunspot::Rails::Adapters::ActiveRecordInstanceAdapter

Public Instance Methods

id() click to toggle source

Return the primary key for the adapted instance

Returns

Integer

Database ID of model

# File lib/sunspot/rails/adapters.rb, line 16
def id
  @instance.id
end