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:
parent
94fdba9c92
commit
decc4e8f82
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue