fa3d7db390
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").
6 lines
96 B
Ruby
6 lines
96 B
Ruby
if ENV['ENABLE_BULLET']
|
|
require 'bullet'
|
|
|
|
Bullet.enable = true
|
|
Bullet.console = true
|
|
end
|