Class: Spree::StoreCreditCategory
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spree::StoreCreditCategory
- Defined in:
- app/models/spree/store_credit_category.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.reimbursement_category(reimbursement) ⇒ Object
8 9 10 11 |
# File 'app/models/spree/store_credit_category.rb', line 8 def self.reimbursement_category(reimbursement) Spree::StoreCreditCategory.find_by(name: reimbursement_category_name) || Spree::StoreCreditCategory.first end |
Instance Method Details
#non_expiring? ⇒ Boolean
13 14 15 |
# File 'app/models/spree/store_credit_category.rb', line 13 def non_expiring? self.class.non_expiring_credit_types.include? name end |