lib/snowpack/slice.rb in snowpack-1.0.0.alpha2 vs lib/snowpack/slice.rb in snowpack-1.0.0.alpha3

- old
+ new

@@ -24,10 +24,14 @@ slice_path = File.join(app.config.root, app.config.slices_dir, klass.slice_name) if File.directory?(slice_path) klass.config.root = slice_path if File.directory?(slice_path) klass.load_paths! "lib" + + if File.directory?(File.join(klass.config.root, klass.config.system_dir)) + klass.load_paths! klass.config.system_dir + end end klass.import application: app end end @@ -45,10 +49,12 @@ def self.boot! finalize! end - def self.finalize! + def self.finalize!(*) + return self if finalized? + # Force `after :configure` hooks to run configure do; end super do Array(@slice_imports).each do |slice|