mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
Renamed embed test to have "test" suffix
Fixed reference to association options
This commit is contained in:
parent
47deb87e81
commit
f9b7c74235
@ -18,7 +18,7 @@ module ActiveModel
|
|||||||
|
|
||||||
serializer.each_association do |name, association, opts|
|
serializer.each_association do |name, association, opts|
|
||||||
@hash[@root][:links] ||= {}
|
@hash[@root][:links] ||= {}
|
||||||
unless options[:embed] == :ids
|
unless opts[:embed] == :ids
|
||||||
@hash[:linked] ||= {}
|
@hash[:linked] ||= {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user