aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2016-08-06 14:12:23 -0500
committerGitHub <noreply@github.com>2016-08-06 14:12:23 -0500
commitc53102b02e6a67315738b44b43e123dff0e5920a (patch)
tree1b27865fd0e9be5241159f540d3dd41f6722af8c
parentb326e82dc012d81e9698cb1f402502af1788c1e9 (diff)
parent5ea4729cd78f44d6a59ad484becee58a8215731b (diff)
downloadrails-c53102b02e6a67315738b44b43e123dff0e5920a.tar.gz
rails-c53102b02e6a67315738b44b43e123dff0e5920a.tar.bz2
rails-c53102b02e6a67315738b44b43e123dff0e5920a.zip
Merge pull request #26060 from siong1987/minor/puma-config
.to_i is unnecessary for puma threads.
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/puma.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/puma.rb b/railties/lib/rails/generators/rails/app/templates/config/puma.rb
index c7f311f811..121ad7080e 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/puma.rb
+++ b/railties/lib/rails/generators/rails/app/templates/config/puma.rb
@@ -4,7 +4,7 @@
# the maximum value specified for Puma. Default is set to 5 threads for minimum
# and maximum, this matches the default thread size of Active Record.
#
-threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
+threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
threads threads_count, threads_count
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.