Module: Essay::ModelHelper
- Included in:
- AbstractCollection, AbstractFeature, AbstractFeatures
- Defined in:
- lib/essay/helpers/model_helper.rb
Instance Method Summary collapse
- #active_record ⇒ Object
- #active_record_associations ⇒ Object
- #active_record_attributes ⇒ Object
- #active_record_features ⇒ Object
- #active_record_traits ⇒ Object
- #traits ⇒ Object
Instance Method Details
#active_record ⇒ Object
6 7 8 |
# File 'lib/essay/helpers/model_helper.rb', line 6 def active_record @active_record end |
#active_record_associations ⇒ Object
22 23 24 |
# File 'lib/essay/helpers/model_helper.rb', line 22 def active_record_associations traits.associations end |
#active_record_attributes ⇒ Object
18 19 20 |
# File 'lib/essay/helpers/model_helper.rb', line 18 def active_record_attributes traits.attributes end |
#active_record_features ⇒ Object
26 27 28 |
# File 'lib/essay/helpers/model_helper.rb', line 26 def active_record_features traits.features end |
#active_record_traits ⇒ Object
14 15 16 |
# File 'lib/essay/helpers/model_helper.rb', line 14 def active_record_traits traits end |
#traits ⇒ Object
10 11 12 |
# File 'lib/essay/helpers/model_helper.rb', line 10 def traits active_record.traits end |