lib/drillbit/authorizers/parameters/resource.rb in drillbit-2.3.0 vs lib/drillbit/authorizers/parameters/resource.rb in drillbit-2.3.1
- old
+ new
@@ -34,11 +34,11 @@
fetch(:data, {}).
fetch(:attributes, {}).
fetch(name, nil)
if param.class == Array
- authorized_params[1][:data][:attributes][0][name] = []
+ authorized_params[1][:data][2][:attributes][0][name] = []
else
authorized_params[1][:data][2][:attributes] << name
end
end
@@ -53,10 +53,10 @@
fetch(:data, {}).
fetch(:relationships, {}).
fetch(name, nil)
if param.class == Array
- authorized_params[1][:data][:relationships][0][name] = []
+ authorized_params[1][:data][2][:relationships][0][name] = []
else
authorized_params[1][:data][2][:relationships] << name
end
end