Class: Spree::Seeds::TaxCategories

Inherits:
Object
  • Object
show all
Includes:
Spree::ServiceModule::Base
Defined in:
app/services/spree/seeds/tax_categories.rb

Instance Method Summary collapse

Methods included from Spree::ServiceModule::Base

prepended

Instance Method Details

#callObject



6
7
8
9
# File 'app/services/spree/seeds/tax_categories.rb', line 6

def call
  Spree::TaxCategory.find_or_create_by(name: 'Default', is_default: true)
  Spree::TaxCategory.find_or_create_by(name: 'Non-taxable')
end