Skip to content
Browse files

Merge pull request #11420 from simi/remove_update_application_control…

…ler_task

Remove update:application_controller rake task.
  • Loading branch information...
2 parents bb8606f + 8e1656e commit 6878d49a3df9b03111c59466726ff70b96a4e199 @senny senny committed Jul 13, 2013
Showing with 6 additions and 12 deletions.
  1. +4 −0 railties/CHANGELOG.md
  2. +2 −12 railties/lib/rails/tasks/framework.rake
View
4 railties/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Removed `update:application_controller` rake task.
+
+ *Josef Šimánek*
+
* Fix `rake environment` to do not eager load modules
*Paul Nikitochkin*
View
14 railties/lib/rails/tasks/framework.rake
@@ -1,6 +1,6 @@
namespace :rails do
- desc "Update configs and some other initially generated files (or use just update:configs, update:bin, or update:application_controller)"
- task update: [ "update:configs", "update:bin", "update:application_controller" ]
+ desc "Update configs and some other initially generated files (or use just update:configs or update:bin)"
+ task update: [ "update:configs", "update:bin" ]
desc "Applies the template supplied by LOCATION=(/path/to/template) or URL"
task :template do
@@ -62,15 +62,5 @@ namespace :rails do
task :bin do
invoke_from_app_generator :create_bin_files
end
-
- # desc "Rename application.rb to application_controller.rb"
- task :application_controller do
- old_style = Rails.root + '/app/controllers/application.rb'
- new_style = Rails.root + '/app/controllers/application_controller.rb'
- if File.exists?(old_style) && !File.exists?(new_style)
- FileUtils.mv(old_style, new_style)
- puts "#{old_style} has been renamed to #{new_style}, update your SCM as necessary"
- end
- end
end
end

0 comments on commit 6878d49

Please sign in to comment.
Something went wrong with that request. Please try again.