1、安装
gem install bullet
#或者加入 Gemfile
group :development do
gem 'bullet', '~> 5.6.0'
end
2、配置
#config/environments/development.rb
config.after_initialize do
Bullet.enable = true
Bullet.alert = true
Bullet.bullet_logger = true
Bullet.console = true
end
网友评论