lib/volt/volt/app.rb in volt-0.9.1 vs lib/volt/volt/app.rb in volt-0.9.2
- old
+ new
@@ -15,13 +15,11 @@
$page = @page unless defined?($page)
end
end
# Require in app and initializers
- unless RUBY_PLATFORM == 'opal'
- Volt.run_app_and_initializers
- end
+ Volt.run_app_and_initializers unless RUBY_PLATFORM == 'opal'
# Load component paths
@component_paths = ComponentPaths.new(app_path)
@component_paths.require_in_components(@page || $page)
@@ -43,14 +41,14 @@
def require_http_controllers
@component_paths.app_folders do |app_folder|
# Sort so we get consistent load order across platforms
Dir["#{app_folder}/*/controllers/server/*.rb"].each do |ruby_file|
- #path = ruby_file.gsub(/^#{app_folder}\//, '')[0..-4]
- #require(path)
+ # path = ruby_file.gsub(/^#{app_folder}\//, '')[0..-4]
+ # require(path)
require(ruby_file)
end
end
end
end
end
-end
\ No newline at end of file
+end