Class: Spree::StoreCreditCategory
- Defined in:
- app/models/spree/store_credit_category.rb
Constant Summary collapse
- GIFT_CARD =
'Gift Card'- REIMBURSEMENT =
'Reimbursement'
Class Method Summary collapse
- .reimbursement_category(reimbursement) ⇒ Object deprecated Deprecated.
Instance Method Summary collapse
Methods inherited from Base
display_includes, page, preference, #preferences
Methods included from Core::Permalinks
#generate_permalink, #save_permalink
Class Method Details
.reimbursement_category(reimbursement) ⇒ Object
Deprecated.
15 16 17 |
# File 'app/models/spree/store_credit_category.rb', line 15 def self.reimbursement_category(reimbursement) reimbursement.store_credit_category end |
Instance Method Details
#non_expiring? ⇒ Boolean
19 20 21 |
# File 'app/models/spree/store_credit_category.rb', line 19 def non_expiring? self.class.non_expiring_credit_types.include? name end |