lib/volt/server.rb in volt-0.7.20 vs lib/volt/server.rb in volt-0.7.21

- old
+ new

@@ -15,19 +15,19 @@ require "sass" require "sprockets-sass" require 'listen' require 'volt' +require 'volt/boot' require 'volt/server/component_handler' if RUBY_PLATFORM != 'java' require 'volt/server/socket_connection_handler' end require 'volt/server/rack/component_paths' require 'volt/server/rack/index_files' require 'volt/server/rack/opal_files' require 'volt/tasks/dispatcher' -require 'volt/page/page' module Rack # TODO: For some reason in Rack (or maybe thin), 304 headers close # the http connection. We might need to make this check if keep # alive was in the request. @@ -53,10 +53,11 @@ root_path ||= Dir.pwd Volt.root = root_path @app_path = File.expand_path(File.join(root_path, "app")) - @component_paths = ComponentPaths.new(root_path) + # Boot the volt app + @component_paths = Volt.boot(root_path) setup_change_listener display_welcome end