Method: Spree::Adjustment#tax?

Defined in:
app/models/spree/adjustment.rb

#tax?Boolean

Returns true when this is a tax adjustment (Tax adjustments have a TaxRate source).

Returns:

  • (Boolean)

    true when this is a tax adjustment (Tax adjustments have a TaxRate source)



92
93
94
# File 'app/models/spree/adjustment.rb', line 92

def tax?
  source_type == 'Spree::TaxRate'
end