Class: ActiveModel::Serializer::HasManyReflection Private

Inherits:
Reflection
  • Object
show all
Defined in:
lib/active_model/serializer/has_many_reflection.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from Reflection

#foreign_key, #type

Attributes inherited from Field

#block, #name, #options

Instance Method Summary collapse

Methods inherited from Reflection

#build_association, #foreign_key_on, #include_data, #include_data?, #initialize, #link, #meta, #value

Methods inherited from Field

#excluded?, #initialize, #value

Constructor Details

This class inherits a constructor from ActiveModel::Serializer::Reflection

Instance Method Details

#collection?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


7
8
9
# File 'lib/active_model/serializer/has_many_reflection.rb', line 7

def collection?
  true
end