Sha256: 636578b14f37b52ab5241bc0d341416bac390175bf7d90ebf8c967f8e655d6f9
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
module SpreeStaticContent class Engine < Rails::Engine engine_name 'spree_static_content' def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c| Rails.application.config.cache_classes ? require(c) : load(c) end Dir.glob(File.join(File.dirname(__FILE__), "../../app/overrides/**/*.rb")) do |c| Rails.application.config.cache_classes ? require(c) : load(c) end end config.to_prepare &method(:activate).to_proc config.autoload_paths += %W(#{config.root}/lib) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_static_content-1.0.1 | lib/spree_static_content/engine.rb |