-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the reimbursement category logic to Spree::Reimbursement
Add Spree::Reimbursement.store_credit_category_proc as a simple way to redefine how the reimbursement category should be fetched. Add Spree::Reimbursement#store_credit_category as the most natural way to fetch a given category for a reimbursement. This fixes reimbursement_category_name ending up in a translation missing error. We need to lazily load the translation because, when the file is loaded, Rails will still have to load translations from the main application.
- Loading branch information
Showing
3 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters