Sha256: 014ae4ed53ad7775a92b10c11eadf643baac57864176ebea193139e856fa3991

Contents?: true

Size: 1 KB

Versions: 92

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

require 'spree_core'
require 'spree/sample'

module SpreeSample
  class Engine < Rails::Engine
    engine_name 'spree_sample'

    # Needs to be here so we can access it inside the tests
    def self.load_samples
      Spree::Sample.load_sample("payment_methods")
      Spree::Sample.load_sample("tax_categories")
      Spree::Sample.load_sample("tax_rates")
      Spree::Sample.load_sample("shipping_categories")
      Spree::Sample.load_sample("shipping_methods")

      Spree::Sample.load_sample("products")
      Spree::Sample.load_sample("taxons")
      Spree::Sample.load_sample("option_values")
      Spree::Sample.load_sample("product_option_types")
      Spree::Sample.load_sample("product_properties")
      Spree::Sample.load_sample("variants")
      Spree::Sample.load_sample("stock")
      Spree::Sample.load_sample("assets")

      Spree::Sample.load_sample("orders")
      Spree::Sample.load_sample("payments")
      Spree::Sample.load_sample("reimbursements")
    end
  end
end

Version data entries

92 entries across 92 versions & 2 rubygems

Version Path
solidus_sample-3.2.6 lib/spree_sample.rb
solidus_sample-3.1.9 lib/spree_sample.rb
solidus_sample-3.2.5 lib/spree_sample.rb
solidus_sample-3.2.4 lib/spree_sample.rb
solidus_sample-3.2.3 lib/spree_sample.rb
solidus_sample-3.1.8 lib/spree_sample.rb
solidus_sample-3.0.8 lib/spree_sample.rb
solidus_sample-3.2.2 lib/spree_sample.rb
solidus_sample-3.2.1 lib/spree_sample.rb
solidus_sample-3.2.0 lib/spree_sample.rb
solidus_sample-3.2.0.alpha lib/spree_sample.rb
solidus_sample-3.0.7 lib/spree_sample.rb
solidus_sample-2.11.17 lib/spree_sample.rb
solidus_sample-3.1.7 lib/spree_sample.rb
solidus_sample-2.11.16 lib/spree_sample.rb
solidus_sample-3.0.6 lib/spree_sample.rb
solidus_sample-3.1.6 lib/spree_sample.rb
solidus_sample-2.11.15 lib/spree_sample.rb
solidus_sample-2.11.14 lib/spree_sample.rb
solidus_sample-3.0.5 lib/spree_sample.rb