From ac1d4a6a62cf76bbce1a6b61be7601124eac3069 Mon Sep 17 00:00:00 2001 From: OsamaSayegh Date: Wed, 11 Mar 2020 18:47:50 +0300 Subject: [PATCH] Include rack-mini-profiler gem by default --- railties/CHANGELOG.md | 8 ++++++++ .../lib/rails/generators/rails/app/templates/Gemfile.tt | 2 ++ 2 files changed, 10 insertions(+) diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 678e514a95..977f674e68 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,11 @@ +* Add `rack-mini-profiler` gem to the default `Gemfile`. + + `rack-mini-profiler` displays performance information such as SQL time and flame graphs. + It's enabled by default in development environment, but can be enabled in production as well. + See the gem [README](https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md) for information on how to enable it in production. + + *Osama Sayegh* + * `rails stats` will now count TypeScript files toward JavaScript stats. *Joshua Cody* diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile.tt b/railties/lib/rails/generators/rails/app/templates/Gemfile.tt index a49d8037d1..32de46c0c4 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile.tt +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile.tt @@ -51,6 +51,8 @@ group :development do <%- else -%> gem 'web-console', '>= 3.3.0' <%- end -%> + # Display performance information such as SQL time and flame graphs for each request in your browser. Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md + gem 'rack-mini-profiler', '~> 2.0.0' <%- end -%> <% if depend_on_listen? -%> gem 'listen', '~> 3.2'