Sha256: dd074cccddc89483391e33f93ed50b0f789d328339245737530790670e4b191b

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

require 'rails'
require 'erd/engine'


module Erd
  autoload :Migrator, 'erd/migrator'

  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

4 entries across 4 versions & 1 rubygems

Version Path
erd-0.1.6 lib/erd/railtie.rb
erd-0.1.5 lib/erd/railtie.rb
erd-0.1.4 lib/erd/railtie.rb
erd-0.1.3 lib/erd/railtie.rb