Class: Subroutine::AssociationFields::ComponentConfiguration

Inherits:
Fields::Configuration show all
Defined in:
lib/subroutine/association_fields/component_configuration.rb

Constant Summary

Constants inherited from Fields::Configuration

Fields::Configuration::NO_GROUPS, Fields::Configuration::PROTECTED_GROUP_IDENTIFIERS

Instance Attribute Summary

Attributes inherited from Fields::Configuration

#field_name

Instance Method Summary collapse

Methods inherited from Fields::Configuration

#bypass_indifferent_assignment?, #field_reader?, #field_writer?, from, #get_default, #groups, #has_default?, #in_group?, #inheritable_options, #initialize, #inspect, #mass_assignable?, #merge, #related_field_names, #required_modules, #sanitize_options, #validate!

Constructor Details

This class inherits a constructor from Subroutine::Fields::Configuration

Instance Method Details

#association_nameObject



13
14
15
# File 'lib/subroutine/association_fields/component_configuration.rb', line 13

def association_name
  config[:association_name]
end

#behaviorObject



9
10
11
# File 'lib/subroutine/association_fields/component_configuration.rb', line 9

def behavior
  :association_component
end