Sha256: fb120da8c943af3cc5cd67d75798276614bf1ef2da694d6a1a29a787ac9cb730

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

require_relative "base"

module Suspenders
  class DbOptimizationsGenerator < Generators::Base
    def add_bullet
      gem "bullet", group: %i[development test]
      Bundler.with_unbundled_env { run "bundle install" }
    end

    def configure_bullet
      inject_template_into_file(
        "config/environments/development.rb",
        "partials/db_optimizations_configuration.rb",
        after: /config.action_mailer.raise_delivery_errors = .*/
      )
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
suspenders-20230113.0 lib/suspenders/generators/db_optimizations_generator.rb
suspenders-1.56.1 lib/suspenders/generators/db_optimizations_generator.rb
suspenders-1.55.1 lib/suspenders/generators/db_optimizations_generator.rb
suspenders-1.55.0 lib/suspenders/generators/db_optimizations_generator.rb