Sha256: 864c12e154c04caea896cdcc9b1c6d2e67cc828f3139d239dd588df42135875f

Contents?: true

Size: 530 Bytes

Versions: 7

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

if defined?(Bullet)
  if Rails.env.development?
    Rails.application.config.after_initialize do
      Bullet.enable = true
      Bullet.bullet_logger = true
      Bullet.rails_logger = true
      # Bullet.add_footer = true
      Bullet.unused_eager_loading_enable = false
    end
  end

  if Rails.env.test?
    Rails.application.config.after_initialize do
      Bullet.enable = true
      Bullet.bullet_logger = true
      Bullet.raise = true # raise an error if n+1 query occurs
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kowl-0.0.7 lib/kowl/templates/config/initializers/bullet.rb
kowl-0.0.6 lib/kowl/templates/config/initializers/bullet.rb
kowl-0.0.5 lib/kowl/templates/config/initializers/bullet.rb
kowl-0.0.4 lib/kowl/templates/config/initializers/bullet.rb
kowl-0.0.3 lib/kowl/templates/config/initializers/bullet.rb
kowl-0.0.2 lib/kowl/templates/config/initializers/bullet.rb
kowl-0.0.1 lib/kowl/templates/config/initializers/bullet.rb