Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds update_javascripts task which will fetch all the latest js files…

… from railties dir.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 35d543f42228d7ca08e3d4e9a78bb54414fd3c5e 1 parent e3bb9e7
Tobias Lütke authored
2  railties/CHANGELOG
View
@@ -1,5 +1,7 @@
*SVN*
+* Added update_javascripts task which will fetch all the latest js files from your current rails install. Use after updating rails. [Tobias Luetke]
+
* Added cleaning of RAILS_ROOT to useless elements such as '../non-dot-dot/'. Provides cleaner backtraces and error messages. [Nicholas Seckar]
* Made the instantiated/transactional fixtures settings be controlled through Rails::Initializer. Transactional and non-instantiated fixtures are default from now on. [Florian Weber]
1  railties/lib/railties_path.rb
View
@@ -0,0 +1 @@
+RAILTIES_PATH = File.expand_path(File.dirname(__FILE__))
6 railties/lib/tasks/javascripts.rake
View
@@ -0,0 +1,6 @@
+
+desc "Update your javascripts from your current rails install."
+task :update_javascripts do
+ require 'railties_path'
+ FileUtils.cp(Dir[RAILTIES_PATH + '/../html/javascripts/*.js'], RAILS_ROOT + '/public/javascripts/')
+end
Please sign in to comment.
Something went wrong with that request. Please try again.