lib/generators/bullet/install_generator.rb in bullet-5.6.0 vs lib/generators/bullet/install_generator.rb in bullet-5.6.1

- old
+ new

@@ -5,11 +5,11 @@ Description: Enable bullet in development/test for your application. DESC def enable_in_development - environment(nil, env: "development") do + environment(nil, env: 'development') do <<-"FILE".strip config.after_initialize do Bullet.enable = true Bullet.alert = true @@ -20,26 +20,26 @@ Bullet.add_footer = true end FILE end - say "Enabled bullet in config/environments/development.rb" + say 'Enabled bullet in config/environments/development.rb' end def enable_in_test - if yes?("Would you like to enable bullet in test environment? (y/n)") - environment(nil, env: "test") do + if yes?('Would you like to enable bullet in test environment? (y/n)') + environment(nil, env: 'test') do <<-"FILE".strip config.after_initialize do Bullet.enable = true Bullet.bullet_logger = true Bullet.raise = true # raise an error if n+1 query occurs end FILE end - say "Enabled bullet in config/environments/test.rb" + say 'Enabled bullet in config/environments/test.rb' end end end end end