Sha256: e8474a76230c2e43e3814ba31f4e22427b079fcdfa09742ae509c3ae37a4c2b4

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

module SpreeIdVerification
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_id_verification'

    # 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

1 entries across 1 versions & 1 rubygems

Version Path
spree_id_verification-0.0.1.alpha lib/spree_id_verification/engine.rb