lib/grape/exceptions/base.rb in grape-0.11.0 vs lib/grape/exceptions/base.rb in grape-0.12.0
- old
+ new
@@ -27,10 +27,10 @@
if short_message.is_a? Hash
@problem = problem(key, attributes)
@summary = summary(key, attributes)
@resolution = resolution(key, attributes)
[['Problem', @problem], ['Summary', @summary], ['Resolution', @resolution]].reduce('') do |message, detail_array|
- message << "\n#{detail_array[0]}:\n #{detail_array[1]}" unless detail_array[1].blank?
+ message << "\n#{detail_array[0]}:\n #{detail_array[1]}" unless detail_array[1].blank?
message
end
else
short_message
end