diff options
Diffstat (limited to 'config/environments')
-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 |