Skip to content

Commit 5ea4729

Browse files
committed
.to_i is unnecessary.
1 parent 5b469da commit 5ea4729

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/puma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# the maximum value specified for Puma. Default is set to 5 threads for minimum
55
# and maximum, this matches the default thread size of Active Record.
66
#
7-
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
7+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
88
threads threads_count, threads_count
99

1010
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.

0 commit comments

Comments
 (0)