lib/quilt_rails/engine.rb in quilt_rails-3.2.1 vs lib/quilt_rails/engine.rb in quilt_rails-3.3.0
- old
+ new
@@ -1,7 +1,13 @@
# frozen_string_literal: true
module Quilt
class Engine < ::Rails::Engine
isolate_namespace Quilt
+
+ initializer(:mount_quilt, before: :add_builtin_route) do |app|
+ app.routes.append do
+ mount(Quilt::Engine, at: '/') unless has_named_route?(:quilt)
+ end
+ end
end
end