lib/quilt_rails/engine.rb in quilt_rails-3.3.0 vs lib/quilt_rails/engine.rb in quilt_rails-3.3.1

- old
+ new

@@ -2,12 +2,16 @@ module Quilt class Engine < ::Rails::Engine isolate_namespace Quilt + config.quilt = Quilt.configuration + initializer(:mount_quilt, before: :add_builtin_route) do |app| - app.routes.append do - mount(Quilt::Engine, at: '/') unless has_named_route?(:quilt) + if config.quilt.mount? + app.routes.append do + mount(Quilt::Engine, at: '/') unless has_named_route?(:quilt) + end end end end end