mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16: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|
|
||||
@hash[@root][:links] ||= {}
|
||||
unless options[:embed] == :ids
|
||||
unless opts[:embed] == :ids
|
||||
@hash[:linked] ||= {}
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user