Disable some generators

Disables some generators when using `rails generate` command
Icons/chart bar
Used 8 times
Created by
C Chanaka

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/Xg8sag"
Template Source

Review the code before running this template on your machine.

inject_into_class "config/application.rb", "Application" do
  str = <<STR
    config.generators do |g|
      g.scaffold_stylesheet false
      g.test_framework "none", :fixture => false
      g.helper false
      g.assets false
      g.javascripts false
      g.stylesheets false
      g.skip_routes true
    end

STR
  str
end
Comments

Sign up or Login to leave a comment.