diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-10-13 11:54:06 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-10-15 12:05:01 +0200 |
commit | fa3d7db39077611703edf7d328e33f0049f5d341 (patch) | |
tree | 2805cad97e52713d57e031e86415aa0793f11ae7 /config | |
parent | 39fcd445fa5a6af19ead78b47de84a199e7e7d50 (diff) | |
download | gitlab-ce-fa3d7db39077611703edf7d328e33f0049f5d341.tar.gz |
Added Bullet to the Gemfile
This can be used to resolve N+1 query problems. Bullet is disabled by
default and can be enabled by starting Rails with the environment
variable ENABLE_BULLET set to a non empty value (e.g. "true").
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/bullet.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/initializers/bullet.rb b/config/initializers/bullet.rb new file mode 100644 index 00000000000..95e82966c7a --- /dev/null +++ b/config/initializers/bullet.rb @@ -0,0 +1,6 @@ +if ENV['ENABLE_BULLET'] + require 'bullet' + + Bullet.enable = true + Bullet.console = true +end |