We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427d736 commit 3e9acc6Copy full SHA for 3e9acc6
app/controllers/items_controller.rb
@@ -67,7 +67,7 @@ def set_item
67
68
# Only allow a list of trusted parameters through.
69
def item_params
70
- @item_params ||= jsonapi_deserialize(params, only: Item::EDIT_ATTRS).transform_values { |v| v unless v.nil? }
+ @item_params ||= jsonapi_deserialize(params, only: Item::EDIT_ATTRS).transform_values { |v| v if v == false || v.present? }
71
end
72
73
def ensure_image_param!
0 commit comments