Sha256: 86c2fc92d1ecc487a1820648d111d9d413c827e4673770b98f8648e697fdbfa6

Contents?: true

Size: 413 Bytes

Versions: 25

Compression:

Stored size: 413 Bytes

Contents

module Spree
  module Seeds
    class StoreCreditCategories
      prepend Spree::ServiceModule::Base

      def call
        # FIXME: we should use translations here
        Spree::StoreCreditCategory.find_or_create_by!(name: 'Default')
        Spree::StoreCreditCategory.find_or_create_by!(name: 'Non-expiring')
        Spree::StoreCreditCategory.find_or_create_by!(name: 'Expiring')
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.10.0 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.9.0 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.8.3 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.8.2 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.7.3 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.6.6 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.5.5 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.4.1 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.5.4 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.6.5 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.7.2 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.7.1 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.6.4 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.7.0 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.6.3 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.6.2 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.6.1 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.6.0 app/services/spree/seeds/store_credit_categories.rb
spree_core-4.5.3 app/services/spree/seeds/store_credit_categories.rb