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:
commit
4c59170bb3
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue