class Boring::Bullet::InstallGenerator

Public Instance Methods

add_bullet_gem() click to toggle source
# File lib/generators/boring/bullet/install/install_generator.rb, line 12
def add_bullet_gem
  say "Adding bullet gem", :green
  Bundler.with_unbundled_env do
    run "bundle add bullet --group development"
  end
end
add_bullet_gem_configuration() click to toggle source
# File lib/generators/boring/bullet/install/install_generator.rb, line 19
def add_bullet_gem_configuration
  return if options[:skip_configuration]

  say "Copying bullet.rb configuration to the initializer", :green
  template("bullet.rb", "config/initializers/bullet.rb")
end