1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove update_js from Rakefile and the uneeded railsgen.

This commit is contained in:
José Valim 2009-07-03 17:58:37 +02:00
parent 20e2140ce7
commit 9e36dd4e1c
2 changed files with 0 additions and 27 deletions

View file

@ -70,15 +70,6 @@ end
# 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 "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"

View file

@ -1,18 +0,0 @@
require File.dirname(__FILE__) + '/../lib/ruby_version_check'
Signal.trap("INT") { puts; exit }
require File.dirname(__FILE__) + '/../lib/rails/version'
if %w(--version -v).include? ARGV.first
puts "Rails #{Rails::VERSION::STRING}"
exit(0)
end
require File.dirname(__FILE__) + '/../lib/generators'
if ARGV.size == 0
Rails::Generators.help
exit
end
name = ARGV.shift
Rails::Generators.invoke name, ARGV, :invoke