mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
23 lines
345 B
Ruby
23 lines
345 B
Ruby
module ActiveModel
|
|
class Serializer
|
|
class LazyAssociation < Field
|
|
|
|
def serializer
|
|
options[:serializer]
|
|
end
|
|
|
|
def include_data?
|
|
options[:include_data]
|
|
end
|
|
|
|
def virtual_value
|
|
options[:virtual_value]
|
|
end
|
|
|
|
def reflection
|
|
options[:reflection]
|
|
end
|
|
end
|
|
end
|
|
end
|