lib/erd/railtie.rb in erd-0.6.2 vs lib/erd/railtie.rb in erd-0.6.3
- old
+ new
@@ -6,13 +6,13 @@
module Erd
autoload :Migrator, 'erd/migrator'
autoload :GenaratorRunner, 'erd/generator_runner'
class Railtie < ::Rails::Railtie #:nodoc:
- initializer 'erd' do |app|
+ initializer 'erd' do
ActiveSupport.on_load(:after_initialize) do
if Rails.env.development?
- Rails.application.routes.append do
+ Rails.application.routes.prepend do
mount Erd::Engine, :at => '/erd'
end
end
end
end