Skip to content

Commit 83601ab

Browse files
committed
Use production? over == "production"
In rails#46656 we disable the IRB autocompletion if it's production. The original PR used `== "production"` but it's cleaner if we use the `production?` helper instead.
1 parent ba2a660 commit 83601ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def initialize(app, options = {})
3939
if @console == IRB
4040
IRB::WorkSpace.prepend(BacktraceCleaner)
4141

42-
if Rails.env == "production"
42+
if Rails.env.production?
4343
ENV["IRB_USE_AUTOCOMPLETE"] ||= "false"
4444
end
4545
end

0 commit comments

Comments
 (0)