Skip to content

Commit 3cea3f8

Browse files
authored
Merge pull request rails#53741 from skipkayhil/hm-only-reload-helper
Remove reload! command due to conflict with helper
2 parents a6d199e + 318ff20 commit 3cea3f8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

railties/lib/rails/commands/console/irb_console.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,11 @@ def execute
5959
end
6060
end
6161

62-
class ReloadCommand < IRB::Command::Base
63-
category "Rails console"
64-
description "Reloads the Rails application."
65-
66-
def execute(*)
67-
puts "Reloading..."
68-
Rails.application.reloader.reload!
69-
end
70-
end
71-
7262
IRB::HelperMethod.register(:helper, ControllerHelper)
7363
IRB::HelperMethod.register(:controller, ControllerInstance)
7464
IRB::HelperMethod.register(:new_session, NewSession)
7565
IRB::HelperMethod.register(:app, AppInstance)
7666
IRB::HelperMethod.register(:reload!, ReloadHelper)
77-
IRB::Command.register(:reload!, ReloadCommand)
7867

7968
class IRBConsole
8069
def initialize(app)

0 commit comments

Comments
 (0)