提交 9e36dd4e 编写于 作者: J José Valim

Remove update_js from Rakefile and the uneeded railsgen.

上级 20e2140c
......@@ -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"
......
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册