aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-06-18 16:14:00 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-06-18 16:51:03 +0900
commite062c961e9867b938d4e7a33a25a3de8d0fa67df (patch)
treef442b9fe3f4fc0d5e293fd006a776293a0f82ee1 /railties/lib/rails/generators
parent03fa6b2907ae68e0c2cfeb8c3e56c080d7ff99c0 (diff)
downloadrails-e062c961e9867b938d4e7a33a25a3de8d0fa67df.tar.gz
rails-e062c961e9867b938d4e7a33a25a3de8d0fa67df.tar.bz2
rails-e062c961e9867b938d4e7a33a25a3de8d0fa67df.zip
Deprecate an `capify!` method in generators and templates
The `capify` command has been removed by Capistrano 3 and became to `cap install`. Therefore, the `capify!` method has no meaning in Capistrano 3. I think that should deprecate. Ref: https://github.com/capistrano/capistrano/commit/492793916acf32ffe1604daec6fd4892c8935018
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/actions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb
index 0bd0615b7e..5cf0985050 100644
--- a/railties/lib/rails/generators/actions.rb
+++ b/railties/lib/rails/generators/actions.rb
@@ -227,6 +227,7 @@ module Rails
#
# capify!
def capify!
+ ActiveSupport::Deprecation.warn("`capify!` is deprecated and will be removed in the next version of Rails.")
log :capify, ""
in_root { run("#{extify(:capify)} .", verbose: false) }
end