Class: Terrazzo::Field::Associative

Inherits:
Base
  • Object
show all
Defined in:
lib/terrazzo/field/associative.rb

Direct Known Subclasses

BelongsTo, HasMany, HasOne, Polymorphic

Constant Summary

Constants inherited from Base

Base::ABSTRACT_FIELD_CLASSES

Instance Attribute Summary

Attributes inherited from Base

#attribute, #data, #options, #page, #resource

Class Method Summary collapse

Methods inherited from Base

default_options, #field_type, field_type, #form_input_attributes, #initialize, permitted_attribute, #required?, searchable?, #serializable_options, #serialize_value, sortable?, transform_param, with_options

Constructor Details

This class inherits a constructor from Terrazzo::Field::Base

Class Method Details

.associative?Boolean

Returns:



5
6
7
# File 'lib/terrazzo/field/associative.rb', line 5

def associative?
  true
end

.eager_load?Boolean

Returns:



9
10
11
# File 'lib/terrazzo/field/associative.rb', line 9

def eager_load?
  true
end