From 90bcfe7a78f9f8238d87159337a84a7f2c83a55f Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sun, 8 Apr 2018 14:08:09 +0200 Subject: [PATCH] Fix parameterise deprecation warning DEPRECATION WARNING: Passing the separator argument as a positional parameter is deprecated and will soon be removed. Use `separator: '_'` instead. (called from followable_translation_key at /home/travis/build/consul/consul/app/controllers/follows_controller.rb:2 5) --- app/controllers/follows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/follows_controller.rb b/app/controllers/follows_controller.rb index 05f0e8f96..78185b5b4 100644 --- a/app/controllers/follows_controller.rb +++ b/app/controllers/follows_controller.rb @@ -22,7 +22,7 @@ class FollowsController < ApplicationController end def followable_translation_key(followable) - followable.class.name.parameterize("_") + followable.class.name.parameterize(separator: "_") end end