diff options
author | Go MAEDA <maeda@farend.jp> | 2025-04-10 11:05:01 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2025-04-10 11:05:01 +0000 |
commit | d325010d6483b4a0ccb386255d86c88d90ad7e38 (patch) | |
tree | 33220da681398fa2a66e350d4dd31732324e2ba2 | |
parent | 17f5e172e83133cd231c62806c7a7149c819b3b4 (diff) | |
download | redmine-d325010d6483b4a0ccb386255d86c88d90ad7e38.tar.gz redmine-d325010d6483b4a0ccb386255d86c88d90ad7e38.zip |
Adds the Bullet gem to detect query problems such as N+1 and improve performance (#42555).
Patch by Katsuya HIDAKA (user:hidakatsuya).
git-svn-id: https://svn.redmine.org/redmine/trunk@23621 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | config/environments/development.rb | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -98,6 +98,7 @@ group :development do gem 'listen', '~> 3.3' gem 'yard', require: false gem 'svg_sprite', require: false + gem 'bullet' end group :test do diff --git a/config/environments/development.rb b/config/environments/development.rb index 5b3ff43dc..d41e817f3 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -59,4 +59,10 @@ Rails.application.configure do # Uncomment if you wish to allow Action Cable access from any origin. # config.action_cable.disable_request_forgery_protection = true + + config.after_initialize do + Bullet.enable = true + Bullet.rails_logger = true + Bullet.skip_user_in_notification = true + end end |