Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #10436 from NARKOZ/keep-images

generate 'app/assets/images' directory when creating new rails app. Fixes #10434
  • Loading branch information...
commit 29dce6e4b540d01bd5fd3ba7b31d2b0efc43bf81 2 parents cc50aab + f354ad1
@rafaelfranca rafaelfranca authored
View
1  railties/lib/rails/generators/rails/app/app_generator.rb
@@ -56,6 +56,7 @@ def gitignore
def app
directory 'app'
+ keep_file 'app/assets/images'
keep_file 'app/mailers'
keep_file 'app/models'
View
0  railties/lib/rails/generators/rails/app/templates/app/assets/images/.keep
No changes.
View
5 railties/test/generators/app_generator_test.rb
@@ -260,6 +260,11 @@ def test_creation_of_a_test_directory
assert_file 'test'
end
+ def test_creation_of_app_assets_images_directory
+ run_generator
+ assert_file "app/assets/images"
+ end
+
def test_creation_of_vendor_assets_javascripts_directory
run_generator
assert_file "vendor/assets/javascripts"
Please sign in to comment.
Something went wrong with that request. Please try again.