Sha256: 73d449527e5c1604365a75820c0824a1fb56ecea358ce14974d60e1a6ccd4899

Contents?: true

Size: 990 Bytes

Versions: 34

Compression:

Stored size: 990 Bytes

Contents

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("prototypes")
      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")
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
solidus_sample-1.3.2 lib/spree_sample.rb
solidus_sample-1.2.3 lib/spree_sample.rb
solidus_sample-1.1.4 lib/spree_sample.rb
solidus_sample-1.0.7 lib/spree_sample.rb
solidus_sample-1.3.1 lib/spree_sample.rb
solidus_sample-1.3.0 lib/spree_sample.rb
solidus_sample-1.3.0.rc2 lib/spree_sample.rb
solidus_sample-1.3.0.rc1 lib/spree_sample.rb
solidus_sample-1.3.0.beta1 lib/spree_sample.rb
solidus_sample-1.0.6 lib/spree_sample.rb
solidus_sample-1.2.2 lib/spree_sample.rb
solidus_sample-1.2.1 lib/spree_sample.rb
solidus_sample-1.1.3 lib/spree_sample.rb
solidus_sample-1.0.5 lib/spree_sample.rb
solidus_sample-1.2.0 lib/spree_sample.rb
solidus_sample-1.2.0.rc2 lib/spree_sample.rb
solidus_sample-1.0.4 lib/spree_sample.rb
solidus_sample-1.1.2 lib/spree_sample.rb
solidus_sample-1.2.0.rc1 lib/spree_sample.rb
solidus_sample-1.2.0.beta1 lib/spree_sample.rb