aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasha Gerrand <sasha.gerrand@salmat.com.au>2011-10-11 17:04:24 +1100
committerSasha Gerrand <sasha.gerrand@salmat.com.au>2011-10-11 17:04:24 +1100
commit43c01ef8b1a49ccb85700d8e248fd10742ede014 (patch)
treeeacd2094a34ca394af33c1ea59a8d608709410c1
parentfcb70f364ccb087f672a85d4d18cc79736503a13 (diff)
downloadrails-43c01ef8b1a49ccb85700d8e248fd10742ede014.tar.gz
rails-43c01ef8b1a49ccb85700d8e248fd10742ede014.tar.bz2
rails-43c01ef8b1a49ccb85700d8e248fd10742ede014.zip
Added method to create vendor/assets/javascripts, added it to methods called within vendor method
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb5
1 files changed, 5 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 9cbda6649d..c8648d19f8 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -122,10 +122,15 @@ module Rails
end
def vendor
+ vendor_javascripts
vendor_stylesheets
vendor_plugins
end
+ def vendor_javascripts
+ empty_directory_with_gitkeep "vendor/assets/javascripts"
+ end
+
def vendor_stylesheets
empty_directory_with_gitkeep "vendor/assets/stylesheets"
end