From c6a1629c0c6e2fa4969c80e03e70eb4d4ed834d2 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 29 Aug 2024 06:13:38 -0400 Subject: bullet config --- config/environments/development.rb | 10 ++++++++++ config/environments/test.rb | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 33e14f6..b58fee1 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -66,4 +66,14 @@ Rails.application.configure do # Raise error when a before_action's only/except options reference missing actions config.action_controller.raise_on_missing_callback_actions = true + + # Bullet config. + config.after_initialize do + Bullet.enable = true + Bullet.alert = true + Bullet.bullet_logger = true + Bullet.console = true + Bullet.rails_logger = true + Bullet.add_footer = true + end end diff --git a/config/environments/test.rb b/config/environments/test.rb index 6d1bd80..f044e5d 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -54,4 +54,11 @@ Rails.application.configure do # Raise error when a before_action's only/except options reference missing actions config.action_controller.raise_on_missing_callback_actions = true + + # Bullet config. + config.after_initialize do + Bullet.enable = true + Bullet.bullet_logger = true + Bullet.raise = true + end end -- cgit v1.2.3