Sha256: 66ead4395f3e11317407f97ab7d8d1c7ecc35b29c731a22ae0b72a7348b4c94c

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 Bytes

Contents

module SpreeFaq
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_faq'

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

    class << self
      def activate
        cache_klasses = %W(#{config.root}/app/**/*_decorator*.rb #{config.root}/app/overrides/*.rb)
        Dir.glob(cache_klasses) do |klass|
          Rails.configuration.cache_classes ? require(klass) : load(klass)
        end
      end
    end

    config.to_prepare(&method(:activate).to_proc)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree-faq-2.4.0 lib/spree_faq/engine.rb
spree-faq-2.3.0 lib/spree_faq/engine.rb
spree-faq-2.2.1 lib/spree_faq/engine.rb
spree-faq-2.1.1 lib/spree_faq/engine.rb
spree-faq-2.0.1 lib/spree_faq/engine.rb