# File lib/friendly_id/active_record2/simple_model.rb, line 15 def primary_key "#{quoted_table_name}.#{model_class.send :primary_key}" end
module FriendlyId::ActiveRecord2::SimpleModel::SimpleFinder
Some basic methods common to {MultipleFinder} and {SingleFinder}.
Public Instance Methods
column()
click to toggle source
The column used to store the friendly_id.
# File lib/friendly_id/active_record2/simple_model.rb, line 10 def column "#{table_name}.#{friendly_id_config.column}" end
primary_key()
click to toggle source
The model's fully-qualified and quoted primary key.