Class: Spina::Shop::TaxRate
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Spina::Shop::TaxRate
- Defined in:
- app/models/spina/shop/tax_rate.rb
Instance Method Summary collapse
-
#label ⇒ Object
Label of the tax rate is based on the tax rateable’s name Defaults to ‘Default tax rate’.
Instance Method Details
#label ⇒ Object
Label of the tax rate is based on the tax rateable’s name Defaults to ‘Default tax rate’
15 16 17 |
# File 'app/models/spina/shop/tax_rate.rb', line 15 def label tax_rateable.try(:name) || I18n.t('spina.shop.tax_groups.default_tax_rate') end |