Sha256: 5ad04261bc51643a933fbe3db82cc6bd6ddafeec565a3a625c3bf9b674431271

Contents?: true

Size: 477 Bytes

Versions: 3

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require 'rails/all'
require 'erd/engine'

module Erd
  autoload :Migrator, 'erd/migrator'
  autoload :GenaratorRunner, 'erd/generator_runner'

  class Railtie < ::Rails::Railtie #:nodoc:
    initializer 'erd' do |app|
      ActiveSupport.on_load(:after_initialize) do
        if Rails.env.development?
          Rails.application.routes.append do
            mount Erd::Engine, :at => '/erd'
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
erd-0.6.1 lib/erd/railtie.rb
erd-0.6.0 lib/erd/railtie.rb
erd-0.5.0 lib/erd/railtie.rb