Sha256: 4dbef0ac7d3b4321150390c5872e52050ae3127aa949e4c33b821e4be0247f7f

Contents?: true

Size: 539 Bytes

Versions: 5

Compression:

Stored size: 539 Bytes

Contents

module SpreeApiAuth
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_api_auth'

    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

5 entries across 5 versions & 1 rubygems

Version Path
spree_api_auth-0.2.0 lib/spree_api_auth/engine.rb
spree_api_auth-0.1.1 lib/spree_api_auth/engine.rb
spree_api_auth-0.1.0 lib/spree_api_auth/engine.rb
spree_api_auth-0.0.3 lib/spree_api_auth/engine.rb
spree_api_auth-0.0.2 lib/spree_api_auth/engine.rb