mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 22:36:50 +00:00
* Move all associations related code from Serializer class to Associations module * Introduce Reflection class hierarchy * Introduce Association class * Rid off Serializer#each_association * Introduce Serializer#associations enumerator
11 lines
166 B
Ruby
11 lines
166 B
Ruby
module ActiveModel
|
|
class Serializer
|
|
# @api private
|
|
class HasOneReflection < SingularReflection
|
|
def macro
|
|
:has_one
|
|
end
|
|
end
|
|
end
|
|
end
|