Renamed embed test to have "test" suffix

Fixed reference to association options
This commit is contained in:
Edgars Jekabsons 2014-10-22 15:30:44 +03:00
parent 47deb87e81
commit f9b7c74235
2 changed files with 1 additions and 1 deletions

View File

@ -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