Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a45c907abe
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.577 kb
require 'spree_core'
module SpreePages
class Engine < Rails::Engine
engine_name "spree_pages"
config.autoload_paths += %W(#{config.root}/lib)
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
Jump to Line
Something went wrong with that request. Please try again.