Method: ActiveRecord::AttributeMethods::PrimaryKey#id
- Defined in:
- lib/active_record/attribute_methods/primary_key.rb
#id ⇒ Object
Returns the primary key value
13 14 15 |
# File 'lib/active_record/attribute_methods/primary_key.rb', line 13 def id read_attribute(self.class.primary_key) end |