Class: Essay::AssociationFeatures

Inherits:
AbstractFeatures show all
Includes:
AssociationHelper
Defined in:
lib/essay/association/association_features.rb

Defined Under Namespace

Classes: Base

Instance Attribute Summary

Attributes inherited from AbstractFeatures

#env

Instance Method Summary collapse

Methods included from AssociationHelper

#association_name, #association_traits

Methods included from SerializeHelper

#serialize_steps, #to_hash

Methods included from FeatureHelper

#is, #not, #with

Methods included from ModelHelper

#model_associations, #model_attributes, #model_class, #model_features, #model_traits

Constructor Details

#initialize(env) ⇒ AssociationFeatures

Returns a new instance of AssociationFeatures.



9
10
11
12
# File 'lib/essay/association/association_features.rb', line 9

def initialize(env)
  super
  @association_name = env.fetch(:association_name)
end