Class: IronAdmin::NestedAssociation

Inherits:
Struct
  • Object
show all
Defined in:
lib/iron_admin/nested_association.rb

Overview

Value object representing a nested association configured for inline editing.

Wraps the resolved configuration from the Resource DSL (has_many/has_one with nested: true) into a structured object used by the NestedFormComponent and strong parameter builder.

See Also:

  • Resource.nested_associations

Instance Attribute Summary collapse

Instance Attribute Details

#allow_destroyObject

Returns the value of attribute allow_destroy

Returns:

  • (Object)

    the current value of allow_destroy



10
11
12
# File 'lib/iron_admin/nested_association.rb', line 10

def allow_destroy
  @allow_destroy
end

#fieldsObject

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



10
11
12
# File 'lib/iron_admin/nested_association.rb', line 10

def fields
  @fields
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



10
11
12
# File 'lib/iron_admin/nested_association.rb', line 10

def kind
  @kind
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/iron_admin/nested_association.rb', line 10

def name
  @name
end

#position_fieldObject

Returns the value of attribute position_field

Returns:

  • (Object)

    the current value of position_field



10
11
12
# File 'lib/iron_admin/nested_association.rb', line 10

def position_field
  @position_field
end

#reflectionObject

Returns the value of attribute reflection

Returns:

  • (Object)

    the current value of reflection



10
11
12
# File 'lib/iron_admin/nested_association.rb', line 10

def reflection
  @reflection
end