Class: ActiveModel::Serializer::BelongsToReflection Private

Inherits:
Reflection
  • Object
show all
Defined in:
lib/active_model/serializer/belongs_to_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, #collection?, #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

#foreign_key_onObject

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.



8
9
10
# File 'lib/active_model/serializer/belongs_to_reflection.rb', line 8

def foreign_key_on
  :self
end