Sha256: cfce95a7fe6c8d14845819816bbb9583dfbd515977ab24d42194cb54acefe4b1

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

module SpreeChannable
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_channable'

    # 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

6 entries across 6 versions & 1 rubygems

Version Path
spree_channable-0.0.24 lib/spree_channable/engine.rb
spree_channable-0.0.23 lib/spree_channable/engine.rb
spree_channable-0.0.22 lib/spree_channable/engine.rb
spree_channable-0.0.21 lib/spree_channable/engine.rb
spree_channable-0.0.20 lib/spree_channable/engine.rb
spree_channable-0.0.18.alpha lib/spree_channable/engine.rb