Sha256: 016774f8c5286cb2c77785b3daf36d04c88315b5f886637726ea8f857f863c64

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

module SpreeRetailers
  class Engine < Rails::Engine
    
    engine_name "spree_retailers"
    
    config.to_prepare do
      #loads application's model / class decorators
      Dir.glob File.expand_path("../../../app/**/*_decorator.rb", __FILE__) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end

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

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_retailers-1.0.0.0 lib/spree_retailers/engine.rb