Skip to content

Commit

Permalink
Add function body that calls CreatePromotionBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Nov 16, 2023
1 parent 4742460 commit fcc3dd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/spree/admin/promotions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def clone

def duplicate
CreatePromotionBatch.call(@promotion, params[:batch_size].to_i)

flash[:success] = Spree.t('promotion_cloned')
redirect_to spree.edit_admin_promotion_url(@promotion)
end

protected
Expand Down

0 comments on commit fcc3dd5

Please sign in to comment.