lib/scrivito/sdk_engine.rb in scrivito_sdk-0.50.1 vs lib/scrivito/sdk_engine.rb in scrivito_sdk-0.60.0.rc1

- old
+ new

@@ -16,11 +16,11 @@ # make sure our exceptions cause an adequate error page and http status code config.action_dispatch.rescue_responses.merge!("Scrivito::ResourceNotFound" => :not_found) initializer "scrivito.add_cms_routing_paths", :after => :add_routing_paths do |app| - cms_route = File.expand_path("cms_routes.rb", paths['config'].to_a.first) - app.routes_reloader.paths.push(cms_route) + precedence_route = File.expand_path("precedence_routes.rb", paths['config'].to_a.first) + app.routes_reloader.paths.unshift(precedence_route) end # Expose Scrivito SDK runtime to controller for logging. initializer "scrivito.log_runtime" do |app| Scrivito::LogSubscriber.attach_to :scrivito