Sha256: 6eb5ea82e1acdbc29cd9b1d6a6ee2d6383208462be34da65adafec8e905eb65d
Contents?: true
Size: 654 Bytes
Versions: 21
Compression:
Stored size: 654 Bytes
Contents
module SpreeBanner class Engine < Rails::Engine engine_name 'spree_banner' config.autoload_paths += %W(#{config.root}/lib) # 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.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 end end
Version data entries
21 entries across 21 versions & 1 rubygems