X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0db47f3f76a33418d88bbdf249b1b5ed1d6fc4bf..1c7ead6008397ce815de4102d023a708be636a3c:/app/views/api/messages/outbox.json.jbuilder diff --git a/app/views/api/messages/outbox.json.jbuilder b/app/views/api/messages/outbox.json.jbuilder index 524006ded..122a82495 100644 --- a/app/views/api/messages/outbox.json.jbuilder +++ b/app/views/api/messages/outbox.json.jbuilder @@ -1,5 +1,5 @@ json.partial! "api/root_attributes" -json.messages(@messages) do |message| - json.partial! message +json.messages do + json.array! @messages, :partial => "message", :as => :message end