Sha256: 2600969c8dd0ccdf97be81408d3a82b91d33214a1909b60acbf6a3846108a2cf

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

module SpreeVariantColumns
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_variant_columns'

    # use rspec for tests
    config.generators do |g|
      g.test_framework :rspec
    end

    def self.activate
      Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end
    end

    config.to_prepare &method(:activate).to_proc
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
spree_variant_columns-2.3.5 lib/spree_variant_columns/engine.rb
spree_variant_columns-2.3.5 spree_variant_columns/lib/spree_variant_columns/engine.rb