Sha256: 705d109f076e48d8fd2a6608b20e5f6748a0f150f0dd4c419e9ce37c4d364b8c

Contents?: true

Size: 530 Bytes

Versions: 6

Compression:

Stored size: 530 Bytes

Contents

module SpreeEssentialExample
  class Engine < Rails::Engine

    engine_name "spree_essential_example"

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

      Dir.glob File.expand_path("../../app/**/*_decorator.rb", __FILE__) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end

      Dir.glob File.expand_path("../../app/overrides/*.rb", __FILE__) do |c|
        Rails.application.config.cache_classes ? require(c) : load(c)
      end
      
    end
    
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree_essentials_jn-0.6.1 test/spree_essential_example/lib/spree_essential_example/engine.rb
spree_essentials_jn-0.6.0 test/spree_essential_example/lib/spree_essential_example/engine.rb
spree_essentials-0.5.0 test/spree_essential_example/lib/spree_essential_example/engine.rb
spree_essentials-0.5.0.rc1 test/spree_essential_example/lib/spree_essential_example/engine.rb
spree_essentials-0.4.0 test/spree_essential_example/lib/spree_essential_example/engine.rb
spree_essentials-0.4.0.rc3 test/spree_essential_example/lib/spree_essential_example/engine.rb