Class: Spree::Seeds::All

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

Instance Method Summary collapse

Methods included from Spree::ServiceModule::Base

prepended

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/services/spree/seeds/all.rb', line 6

def call
  Spree::Webhooks.disable_webhooks do
    # GEO
    Countries.call
    States.call
    Zones.call

    # user roles
    Roles.call

    # additional data
    ReturnsEnvironment.call
    ShippingCategories.call
    StoreCreditCategories.call
    TaxCategories.call
    DigitalDelivery.call

    # store & stock location
    Stores.call
    StockLocations.call
    AdminUser.call

    # add store resources
    PaymentMethods.call
  end
end