]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/messages/outbox.json.jbuilder
Merge pull request #5019 from tomhughes/oauth2-cleanup
[rails.git] / app / views / api / messages / outbox.json.jbuilder
index 524006ded54588099e51aba88cea05b81dc66f9f..122a82495b93abdf08eb9b10dce48fd8d60199f8 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
 json.partial! "api/root_attributes"
 
-json.messages(@messages) do |message|
-  json.partial! message
+json.messages do
+  json.array! @messages, :partial => "message", :as => :message
 end
 end