1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #3589 from amatsuda/console_extend_command_bundle_fix

Extend IRB right before starting IRB to remove dependency on IRB from Rails::Application
This commit is contained in:
José Valim 2011-11-09 14:04:04 -08:00
commit 4c59170bb3
2 changed files with 2 additions and 2 deletions

View file

@ -205,8 +205,6 @@ module Rails
require "pp"
require "rails/console/app"
require "rails/console/helpers"
IRB::ExtendCommandBundle.send :include, Rails::ConsoleMethods
end
end
end

View file

@ -42,6 +42,8 @@ module Rails
else
puts "Loading #{Rails.env} environment (Rails #{Rails.version})"
end
IRB::ExtendCommandBundle.send :include, Rails::ConsoleMethods
IRB.start
end
end