diff options
author | David Gay <eapoems@riseup.net> | 2024-08-29 06:13:38 -0400 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2024-08-29 06:13:38 -0400 |
commit | c6a1629c0c6e2fa4969c80e03e70eb4d4ed834d2 (patch) | |
tree | 8e257b11973c0aae94af4f0759374ccf28299a3c /config | |
parent | 6538e785ee290344fa9f8fb325a475360ae78da8 (diff) |
bullet config
Diffstat (limited to 'config')
-rw-r--r-- | config/environments/development.rb | 10 | ||||
-rw-r--r-- | config/environments/test.rb | 7 |
2 files changed, 17 insertions, 0 deletions
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 |