mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Renamed embed test to have "test" suffix
Fixed reference to association options
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user