lib/coco/engine.rb in coveragebook_components-0.10.0 vs lib/coco/engine.rb in coveragebook_components-0.10.1.beta.0
- old
+ new
@@ -4,11 +4,11 @@
module Coco
class Engine < ::Rails::Engine
isolate_namespace Coco
- COLLAPSE_DIRS = %w[base]
+ COLLAPSE_DIRS = %w[shared]
config.autoload_paths += %W[
#{root}/app/components
#{root}/app/helpers
]
@@ -19,10 +19,10 @@
app.autoloaders.each do |autoloader|
COLLAPSE_DIRS.each do |path|
autoloader.collapse("#{coco_dir}/#{path}")
end
- Dir.glob("#{coco_dir}/base/**/*.rb").each do |path|
+ Dir.glob("#{coco_dir}/shared/**/*.rb").each do |path|
autoloader.collapse(File.dirname(path))
end
Dir.glob("#{coco_dir}/{app,book}/{blocks,elements,layouts}/**/*.rb").each do |path|
autoloader.collapse(File.dirname(path))