Skip to content

Commit

Permalink
Merge pull request #2590 from Sinetheta/per-quantity-calculators
Browse files Browse the repository at this point in the history
Properly limit per-quantity calculator types
  • Loading branch information
jhawthorn authored Mar 2, 2018
2 parents 4dce0a9 + 6ba7677 commit 75adeac
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
<%= number_field_tag field_name, promotion_action.preferred_group_size, class: "fullwidth", min: 1 %>
</div>

<%= render "spree/admin/promotions/actions/create_item_adjustments",
promotion_action: promotion_action, param_prefix: param_prefix %>
<%= render "spree/admin/promotions/actions/promotion_calculators_with_custom_fields",
calculators: Rails.application.config.spree.calculators.promotion_actions_create_quantity_adjustments,
promotion_action: promotion_action,
param_prefix: param_prefix
%>

0 comments on commit 75adeac

Please sign in to comment.