Permalink
Browse files

Merge pull request #26060 from siong1987/minor/puma-config

.to_i is unnecessary for puma threads.
  • Loading branch information...
guilleiguaran committed Aug 6, 2016
2 parents b326e82 + 5ea4729 commit c53102b02e6a67315738b44b43e123dff0e5920a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.

0 comments on commit c53102b

Please sign in to comment.