Module: Essay::ModelHelper

Included in:
AbstractCollection, AbstractFeature, AbstractFeatures
Defined in:
lib/essay/helpers/model_helper.rb

Instance Method Summary collapse

Instance Method Details

#active_recordObject



6
7
8
# File 'lib/essay/helpers/model_helper.rb', line 6

def active_record
  @active_record
end

#active_record_associationsObject



22
23
24
# File 'lib/essay/helpers/model_helper.rb', line 22

def active_record_associations
  traits.associations
end

#active_record_attributesObject



18
19
20
# File 'lib/essay/helpers/model_helper.rb', line 18

def active_record_attributes
  traits.attributes
end

#active_record_featuresObject



26
27
28
# File 'lib/essay/helpers/model_helper.rb', line 26

def active_record_features
  traits.features
end

#active_record_traitsObject



14
15
16
# File 'lib/essay/helpers/model_helper.rb', line 14

def active_record_traits
  traits
end

#traitsObject



10
11
12
# File 'lib/essay/helpers/model_helper.rb', line 10

def traits
  active_record.traits
end