Sha256: 06400db9c4d7ffced4a4bab8dd594ace704ff656e027564e76f3e1b4c8aca539
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
module Spree module Seeds class StockLocations prepend Spree::ServiceModule::Base def call country = Spree::Store.default.default_country Spree::StockLocation.find_or_create_by!( name: Spree.t(:default_stock_location_name), propagate_all_variants: false, country: country, active: true, default: true ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_core-4.10.1 | app/services/spree/seeds/stock_locations.rb |
spree_core-4.10.0 | app/services/spree/seeds/stock_locations.rb |
spree_core-4.9.0 | app/services/spree/seeds/stock_locations.rb |