Sha256: 359f3d1129d133d510d13ae23476932c4064761e81c4b7739479d1d3d6baf46e

Contents?: true

Size: 568 Bytes

Versions: 2

Compression:

Stored size: 568 Bytes

Contents

module SpreeVariantOptions
  class Engine < Rails::Engine

    engine_name "spree_variant_options"

    config.to_prepare do
      #loads application's model / class decorators
      Dir.glob File.expand_path("../../../app/**/*_decorator.rb", __FILE__) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end

      #loads application's deface view overrides
      Dir.glob File.expand_path("../../../app/overrides/*.rb", __FILE__) do |c|
        Rails.application.config.cache_classes ? require(c) : load(c)
      end
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_variant_options-0.4.1 lib/spree_variant_options/engine.rb
spree_variant_options-0.4.0 lib/spree_variant_options/engine.rb