mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Extend IRB right before starting IRB to remove dependency on IRB from Rails::Application
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user