aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-06-18 18:27:37 -0700
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-06-30 15:25:21 +0530
commita7a8cb5b58b617a90e29905c2e1655fb2201b5d3 (patch)
tree6780417e6635444e1bae54b5bb3abf4b8909bce9 /railties/lib/rails/tasks
parentfe054e02b29340c6d9265f9b4ea2ea7d9a872156 (diff)
downloadrails-a7a8cb5b58b617a90e29905c2e1655fb2201b5d3.tar.gz
rails-a7a8cb5b58b617a90e29905c2e1655fb2201b5d3.tar.bz2
rails-a7a8cb5b58b617a90e29905c2e1655fb2201b5d3.zip
Display link to Rails upgrade guide at the end of `rails app:update` task.
- This will nudge people in the direction of going through upgrade guides.
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r--railties/lib/rails/tasks/framework.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake
index 51d9daaaa9..255312493f 100644
--- a/railties/lib/rails/tasks/framework.rake
+++ b/railties/lib/rails/tasks/framework.rake
@@ -2,7 +2,7 @@ require 'active_support/deprecation'
namespace :app do
desc "Update configs and some other initially generated files (or use just update:configs or update:bin)"
- task update: [ "update:configs", "update:bin" ]
+ task update: [ "update:configs", "update:bin", "update:upgrade_guide_info" ]
desc "Applies the template supplied by LOCATION=(/path/to/template) or URL"
task template: :environment do
@@ -67,6 +67,10 @@ namespace :app do
task :bin do
RailsUpdate.invoke_from_app_generator :create_bin_files
end
+
+ task :upgrade_guide_info do
+ RailsUpdate.invoke_from_app_generator :display_upgrade_guide_info
+ end
end
end