Sha256: b57fbfa7b544c271fc16a079201f1fbd3ed62341896ce5ad7b4971f11bcd8c86
Contents?: true
Size: 647 Bytes
Versions: 21
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true require_relative 'base' module Bankai module Generators # :nodoc: class DbOptimizationsGenerator < Base def configure_bullet inject_into_file( 'config/environments/development.rb', configuration, after: 'config.file_watcher = ' \ "ActiveSupport::EventedFileUpdateChecker\n" ) end private def configuration <<-RUBY config.after_initialize do Bullet.enable = true Bullet.bullet_logger = true Bullet.rails_logger = true Bullet.add_footer = true end RUBY end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
bankai-0.1.0 | lib/bankai/generators/db_optimizations_generator.rb |