Skip to content

Commit

Permalink
Remove promotion_code from adjustment_attributes
Browse files Browse the repository at this point in the history
Adjustments do not have an attribute called 'promotion_code'. The
resulting JSON will always return NULL.
  • Loading branch information
Graeme Nathan committed Mar 26, 2018
1 parent fd474db commit 91147a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/helpers/spree/api/api_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def required_fields_for(model)

@@adjustment_attributes = [
:id, :source_type, :source_id, :adjustable_type, :adjustable_id,
:amount, :label, :promotion_code,
:amount, :label,
:finalized, :eligible, :created_at, :updated_at
]

Expand Down

0 comments on commit 91147a6

Please sign in to comment.