Sha256: eb71cffb0cf5731fcfb530551297446a45b0e744ab052900558b69e012f7985c

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 Bytes

Contents

# 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quilt_rails-3.3.0 lib/quilt_rails/engine.rb