lib/ruby-enum/errors/base.rb in ruby-enum-0.8.0 vs lib/ruby-enum/errors/base.rb in ruby-enum-0.9.0
- old
+ new
@@ -37,10 +37,10 @@
# [key] The key of the error in the locales.
# [options] The objects to pass to create the message.
#
# Returns a localized error message string.
def translate(key, options)
- ::I18n.translate("#{BASE_KEY}.#{key}", { locale: :en }.merge(options)).strip
+ ::I18n.translate("#{BASE_KEY}.#{key}", **{ locale: :en }.merge(options)).strip
end
# Create the problem.
#
# === Parameters