Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Last active August 29, 2015 14:06
Show Gist options
  • Save rummelonp/7163b1af8de7351be747 to your computer and use it in GitHub Desktop.
Save rummelonp/7163b1af8de7351be747 to your computer and use it in GitHub Desktop.
Rails のジェネレータで使わない奴生成しないようにするやつ
# これを config/application.rb 内にコペピする
# 参考: http://guides.rubyonrails.org/generators.html#customizing-your-workflow-by-changing-generators-templates
config.generators do |g|
g.controller helper: false, assets: false
g.rspec view_specs: false, helper_specs: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment