diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/Rakefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 475954d064..830cdd6a80 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -68,16 +68,24 @@ task :clean do rm_rf PKG_DESTINATION end -# Get external spinoffs ------------------------------------------------------------------- +# Update spinoffs ------------------------------------------------------------------- desc "Updates railties to the latest version of the javascript spinoffs" task :update_js do for js in %w( prototype controls dragdrop effects ) - rm "html/javascripts/#{js}.js" - cp "./../actionpack/lib/action_view/helpers/javascripts/#{js}.js", "html/javascripts" + rm "lib/generators/rails/app/templates/public/javascripts/#{js}.js" + cp "./../actionpack/lib/action_view/helpers/javascripts/#{js}.js", + "lib/generators/rails/app/templates/public/javascripts" end end +desc "Updates application README to the latest version Railties README" +task :update_readme do + readme = "lib/generators/rails/app/templates/README" + rm readme + cp "./README", readme +end + # Run application generator ------------------------------------------------------------- task :create_rails do |