Module: ScaffoldingExtensions::ActiveRecord
- Included in:
- ActiveRecord::Base
- Defined in:
- lib/scaffolding_extensions/model/active_record.rb
Overview
Instance methods added to ActiveRecord::Base to allow it to work with Scaffolding Extensions.
Instance Method Summary collapse
-
#scaffold_attribute_value(field) ⇒ Object
Get value for given attribute.
-
#scaffold_id ⇒ Object
the value of the primary key for this object.
Instance Method Details
#scaffold_attribute_value(field) ⇒ Object
Get value for given attribute
6 7 8 |
# File 'lib/scaffolding_extensions/model/active_record.rb', line 6 def scaffold_attribute_value(field) self[field] end |
#scaffold_id ⇒ Object
the value of the primary key for this object
11 12 13 |
# File 'lib/scaffolding_extensions/model/active_record.rb', line 11 def scaffold_id id end |