Class: Spree::Seeds::StockLocations
- Inherits:
-
Object
- Object
- Spree::Seeds::StockLocations
- Includes:
- Spree::ServiceModule::Base
- Defined in:
- app/services/spree/seeds/stock_locations.rb
Instance Method Summary collapse
Methods included from Spree::ServiceModule::Base
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'app/services/spree/seeds/stock_locations.rb', line 6 def call country = Spree::Store.default.default_country Spree::StockLocation.find_or_create_by!( name: 'default', propagate_all_variants: false, country: country, active: true, default: true ) end |