1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Do not generate lib/assets directory for api apps

This commit is contained in:
Santiago Pastorino 2015-04-19 21:29:58 -04:00
parent 94fdba9c92
commit decc4e8f82
2 changed files with 2 additions and 1 deletions

View file

@ -262,6 +262,7 @@ module Rails
def delete_app_assets_if_api_option
if options[:api]
remove_dir 'app/assets'
remove_dir 'lib/assets'
end
end

View file

@ -62,7 +62,6 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
db
lib
lib/tasks
lib/assets
log
test/fixtures
test/controllers
@ -80,6 +79,7 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
config/initializers/assets.rb
config/initializers/cookies_serializer.rb
config/initializers/session_store.rb
lib/assets
vendor/assets
test/helpers
tmp/cache/assets)