Skip to content

Commit 294d066

Browse files
committed
Remove unused embed option
1 parent 33f3a88 commit 294d066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_model/serializer/adapter/json_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def add_resource_links(attrs, serializer, options = {})
124124
add_link(attrs, name, association)
125125
end
126126

127-
if @options[:embed] != :ids && options[:add_included]
127+
if options[:add_included]
128128
Array(association).each do |association|
129129
add_included(name, association)
130130
end

0 commit comments

Comments
 (0)