Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Extend IRB right before starting IRB to remove dependency on IRB from…

… Rails::Application
  • Loading branch information...
commit a658fd2ffa2fd2019696ddd10b12aa5490b1668e 1 parent f686d94
@amatsuda amatsuda authored
View
2  railties/lib/rails/application.rb
@@ -205,8 +205,6 @@ def initialize_console
require "pp"
require "rails/console/app"
require "rails/console/helpers"
-
- IRB::ExtendCommandBundle.send :include, Rails::ConsoleMethods
end
end
end
View
2  railties/lib/rails/commands/console.rb
@@ -42,6 +42,8 @@ def start
else
puts "Loading #{Rails.env} environment (Rails #{Rails.version})"
end
+
+ IRB::ExtendCommandBundle.send :include, Rails::ConsoleMethods
IRB.start
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.