Sha256: 2d3b38df016d0c2baeaf90734d020b6523a3bc74707a3a32c70afa9e411648cc

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

module SolidusJwt
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'solidus_jwt'

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

    def self.activate
      decorator_pattern = File.join(__dir__, '../../app/**/*_decorator*.rb')

      Dir.glob(decorator_pattern) 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
solidus_jwt-1.0.0 lib/solidus_jwt/engine.rb
solidus_jwt-1.0.0.beta2 lib/solidus_jwt/engine.rb
solidus_jwt-1.0.0.beta1 lib/solidus_jwt/engine.rb
solidus_jwt-0.1.0 lib/solidus_jwt/engine.rb