unused arg
This commit is contained in:
parent
9e2b7e267e
commit
2167a74fd9
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ module Api
|
|||
opts.merge(unless: -> { embeds.include?(key) })) do
|
||||
Pundit.policy_scope(scope[:current_user], object.send(attr))&.map(&:id) || []
|
||||
end
|
||||
has_many(attr, opts.merge(if: -> { embeds.include?(key) })) do |serializer|
|
||||
has_many(attr, opts.merge(if: -> { embeds.include?(key) })) do
|
||||
list = Pundit.policy_scope(scope[:current_user], object.send(attr)) || []
|
||||
child_serializer = "Api::V2::#{attr.to_s.singularize.camelize}Serializer".constantize
|
||||
resource = ActiveModelSerializers::SerializableResource.new(
|
||||
|
|
Loading…
Add table
Reference in a new issue