Method: Spree::LineItem#copy_tax_category
- Defined in:
- app/models/spree/line_item.rb
#copy_tax_category ⇒ Object
Sets this line item’s tax category from this line item’s variant if a variant is present.
55 56 57 58 59 |
# File 'app/models/spree/line_item.rb', line 55 def copy_tax_category if variant self.tax_category = variant.tax_category end end |