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.0.0.rc2 lib/spree_sample.rb
solidus_sample-2.11.5 lib/spree_sample.rb
solidus_sample-2.11.4 lib/spree_sample.rb
solidus_sample-2.11.3 lib/spree_sample.rb
solidus_sample-2.11.2 lib/spree_sample.rb
solidus_sample-2.11.1 lib/spree_sample.rb
solidus_sample-2.10.3 lib/spree_sample.rb
solidus_sample-2.11.0 lib/spree_sample.rb
solidus_sample-2.10.2 lib/spree_sample.rb
solidus_sample-2.9.6 lib/spree_sample.rb
solidus_sample-2.8.6 lib/spree_sample.rb
solidus_sample-2.10.1 lib/spree_sample.rb
solidus_sample-2.9.5 lib/spree_sample.rb
solidus_sample-2.10.0 lib/spree_sample.rb
solidus_sample-2.9.4 lib/spree_sample.rb
solidus_sample-2.6.6 lib/spree_sample.rb
solidus_sample-2.7.4 lib/spree_sample.rb
solidus_sample-2.8.5 lib/spree_sample.rb
solidus_sample-2.9.3 lib/spree_sample.rb
solidus_sample-2.9.2 lib/spree_sample.rb