Sha256: c4c1444a3e647ab4ca2998928fd22027e983a9943000f9001eabaf5157331f54

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

module SpreeTaxonGroup
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_taxon_group'

    # 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 2 versions & 1 rubygems

Version Path
spree_taxon_group-3.1.0.beta lib/spree_taxon_group/engine.rb
spree_taxon_group-3.0.0.beta lib/spree_taxon_group/engine.rb