summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2025-04-10 11:05:01 +0000
committerGo MAEDA <maeda@farend.jp>2025-04-10 11:05:01 +0000
commitd325010d6483b4a0ccb386255d86c88d90ad7e38 (patch)
tree33220da681398fa2a66e350d4dd31732324e2ba2
parent17f5e172e83133cd231c62806c7a7149c819b3b4 (diff)
downloadredmine-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--Gemfile1
-rw-r--r--config/environments/development.rb6
2 files changed, 7 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 90426b64c..00d583f91 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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