diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-04-17 15:28:52 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-06-11 16:54:10 -0300 |
commit | 9b66071a3e81b1db10b969010db96f6d5434472b (patch) | |
tree | 02b5020a8db5a9f87dc7d6c93f5c7fc7536c531d /railties/lib | |
parent | 1718683016c3d5487ed9ff5eca1377c295d638ed (diff) | |
download | rails-9b66071a3e81b1db10b969010db96f6d5434472b.tar.gz rails-9b66071a3e81b1db10b969010db96f6d5434472b.tar.bz2 rails-9b66071a3e81b1db10b969010db96f6d5434472b.zip |
Do not generate app/helpers directory for api apps
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 0c2d333b3f..f6ac0107e1 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -265,6 +265,12 @@ module Rails end end + def delete_app_helpers_if_api_option + if options[:api] + remove_dir 'app/helpers' + end + end + def delete_js_folder_skipping_javascript if options[:skip_javascript] remove_dir 'app/assets/javascripts' |