diff options
author | Teng Siong Ong <siong1987@gmail.com> | 2016-08-04 14:51:29 -0700 |
---|---|---|
committer | Teng Siong Ong <siong1987@gmail.com> | 2016-08-04 14:51:29 -0700 |
commit | 5ea4729cd78f44d6a59ad484becee58a8215731b (patch) | |
tree | df76152cdb5c86619275046ce747badf2858b7a8 | |
parent | 5b469da6ec482414c5f59762ae8e82de7e07c365 (diff) | |
download | rails-5ea4729cd78f44d6a59ad484becee58a8215731b.tar.gz rails-5ea4729cd78f44d6a59ad484becee58a8215731b.tar.bz2 rails-5ea4729cd78f44d6a59ad484becee58a8215731b.zip |
.to_i is unnecessary.
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/puma.rb | 2 |
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. |