Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inverse_of to Promotion#codes association
This helps fix an issue when creating a new promotion with a single code. Without the inverse_of parameter, our associated codes won't correctly infer that they're associated to a new promotion and will generate undefined method for nil errors. Co-authored-by: Alistair Norman <[email protected]> (cherry picked from commit 2cb9ac1)
- Loading branch information