Class: Spina::Shop::TaxRate

Inherits:
ApplicationRecord show all
Defined in:
app/models/spina/shop/tax_rate.rb

Instance Method Summary collapse

Instance Method Details

#labelObject

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