Skip to content

Instantly share code, notes, and snippets.

@toddsiegel
Created September 30, 2021 22:42
Show Gist options
  • Save toddsiegel/46cdbd3098a5fdb4c14783690e2b7dfa to your computer and use it in GitHub Desktop.
Save toddsiegel/46cdbd3098a5fdb4c14783690e2b7dfa to your computer and use it in GitHub Desktop.
Rails Generators: Turn off I don't use
# 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