Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(Promotions): Instantiate single promo code with promotion
Because promotion codes have the `-> {with_discarded}` scope on the `promotion` association, a promo code that's instantiated with `promotion.codes.new` will not have the promotion associated at the beginning, leading to errors. This passes in the promotion so that the promo code knows where it belongs.
- Loading branch information