diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-04-17 15:31:46 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-06-11 16:54:10 -0300 |
commit | 3847e485b6feddf1bcfdb856238f0bd096001193 (patch) | |
tree | b4a1c049fca3cd475fd00b8e42b8d0ed89c27558 /railties/lib | |
parent | 9b66071a3e81b1db10b969010db96f6d5434472b (diff) | |
download | rails-3847e485b6feddf1bcfdb856238f0bd096001193.tar.gz rails-3847e485b6feddf1bcfdb856238f0bd096001193.tar.bz2 rails-3847e485b6feddf1bcfdb856238f0bd096001193.zip |
Do not generate app/views 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 f6ac0107e1..e7543d7bbf 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -271,6 +271,12 @@ module Rails end end + def delete_app_views_if_api_option + if options[:api] + remove_dir 'app/views' + end + end + def delete_js_folder_skipping_javascript if options[:skip_javascript] remove_dir 'app/assets/javascripts' |