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.12.1 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.12.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.11.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.10.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.9.1 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.9.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.8.1 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.8.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.7.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.6.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.5.1 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.5.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.4.1 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.4.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.3.1 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.3.0 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.2.3 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.2.2 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.2.1 lib/bankai/generators/db_optimizations_generator.rb
bankai-0.2.0 lib/bankai/generators/db_optimizations_generator.rb