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:
parent
43068ac239
commit
a3fcb3b682
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue