Fix two deprecated usages of keyword arguments.

This prevents us from using behavior that was deprecated in Ruby 2.7.
This commit is contained in:
Connor Shea 2019-12-26 17:44:53 -07:00
parent 43068ac239
commit a3fcb3b682
No known key found for this signature in database
GPG Key ID: 7FF97FB48289A157
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ MESSAGE
options[:default] = Array(options[:default]).unshift(kind.to_sym)
options[:resource_name] = resource_name
options = devise_i18n_options(options)
I18n.t("#{options[:resource_name]}.#{kind}", options)
I18n.t("#{options[:resource_name]}.#{kind}", **options)
end
# Controllers inheriting DeviseController are advised to override this

View File

@ -107,7 +107,7 @@ module Devise
options[:authentication_keys] = keys.join(I18n.translate(:"support.array.words_connector"))
options = i18n_options(options)
I18n.t(:"#{scope}.#{message}", options)
I18n.t(:"#{scope}.#{message}", **options)
else
message.to_s
end