Created
September 30, 2021 22:42
-
-
Save toddsiegel/46cdbd3098a5fdb4c14783690e2b7dfa to your computer and use it in GitHub Desktop.
Rails Generators: Turn off I don't use
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initialers/generators.rb | |
# This config will not generate the following: | |
# - per model view helpers, or stylesheets | |
# - scaffold.scss | |
# - jbuilder templates, which I only occasionally use | |
# - controller tests, which I don't really use. I do system tests instead. | |
Rails.application.config.generators do |g| | |
g.controller test_framework: false | |
g.helper false | |
g.jbuilder false | |
g.scaffold_controller test_framework: false | |
g.scaffold_stylesheet false | |
g.serializer false | |
g.stylesheets false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment