Skip to content

Commit 8e1656e

Browse files
committed
Remove update:application_controller rake task.
1 parent bb8606f commit 8e1656e

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

railties/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Removed `update:application_controller` rake task.
2+
3+
*Josef Šimánek*
4+
15
* Fix `rake environment` to do not eager load modules
26

37
*Paul Nikitochkin*

railties/lib/rails/tasks/framework.rake

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace :rails do
2-
desc "Update configs and some other initially generated files (or use just update:configs, update:bin, or update:application_controller)"
3-
task update: [ "update:configs", "update:bin", "update:application_controller" ]
2+
desc "Update configs and some other initially generated files (or use just update:configs or update:bin)"
3+
task update: [ "update:configs", "update:bin" ]
44

55
desc "Applies the template supplied by LOCATION=(/path/to/template) or URL"
66
task :template do
@@ -62,15 +62,5 @@ namespace :rails do
6262
task :bin do
6363
invoke_from_app_generator :create_bin_files
6464
end
65-
66-
# desc "Rename application.rb to application_controller.rb"
67-
task :application_controller do
68-
old_style = Rails.root + '/app/controllers/application.rb'
69-
new_style = Rails.root + '/app/controllers/application_controller.rb'
70-
if File.exists?(old_style) && !File.exists?(new_style)
71-
FileUtils.mv(old_style, new_style)
72-
puts "#{old_style} has been renamed to #{new_style}, update your SCM as necessary"
73-
end
74-
end
7565
end
7666
end

0 commit comments

Comments
 (0)