Sha256: 623f5ccc21d4606c26e71a21d64b9d8b47bffbc5badb6d33856a3ff4041c8264

Contents?: true

Size: 549 Bytes

Versions: 4

Compression:

Stored size: 549 Bytes

Contents

module SpreeBraintreeCse
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_braintree_cse'

    config.autoload_paths += %W(#{config.root}/lib)

    # 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

4 entries across 4 versions & 1 rubygems

Version Path
spree_braintree_cse-2.1.2 lib/spree_braintree_cse/engine.rb
spree_braintree_cse-1.3.2 lib/spree_braintree_cse/engine.rb
spree_braintree_cse-1.3.1.2 lib/spree_braintree_cse/engine.rb
spree_braintree_cse-1.3.1.1 lib/spree_braintree_cse/engine.rb