lib/grape/exceptions/base.rb in grape-2.0.0 vs lib/grape/exceptions/base.rb in grape-2.1.0

- old
+ new

@@ -39,18 +39,18 @@ short_message end end def problem(key, **attributes) - translate_message("#{key}.problem".to_sym, **attributes) + translate_message(:"#{key}.problem", **attributes) end def summary(key, **attributes) - translate_message("#{key}.summary".to_sym, **attributes) + translate_message(:"#{key}.summary", **attributes) end def resolution(key, **attributes) - translate_message("#{key}.resolution".to_sym, **attributes) + translate_message(:"#{key}.resolution", **attributes) end def translate_attributes(keys, **options) keys.map do |key| translate("#{BASE_ATTRIBUTES_KEY}.#{key}", default: key, **options)