Sha256: bda469e91facbef478984feec59a449bbc319550d5fe03ba1b37f892b2468fa5
Contents?: true
Size: 1.06 KB
Versions: 72
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true module RailsAppGenerator # The application builder allows you to override elements of the application # generator without being forced to reverse the operations of the default generator. class AppBuilder < Rails::AppBuilder # def bin # super # template 'bin/setup.erb', 'bin/setup', force: true # end # def credentials # super # # This sets up credentials using a custom template for both development and production use # RailsAppGenerator::AddOns::Credentials.apply # end def readme template 'README.md.erb', 'README.md' end # def ruby_version # RailsAppGenerator::AddOns::RubyVersion.new(Context.new(options)).apply # end def gemfile template 'Gemfile.erb', 'Gemfile' end # def gitignore # template '.gitignore.erb', '.gitignore' # end # def database_yml # if options[:database] == 'postgresql' # template 'config/postgresql.yml.erb', 'config/database.yml' # else # super # end # end end end
Version data entries
72 entries across 72 versions & 1 rubygems