]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/messages/inbox.json.jbuilder
Removed unused translations in user_role namespace
[rails.git] / app / views / api / messages / inbox.json.jbuilder
index 524006ded54588099e51aba88cea05b81dc66f9f..122a82495b93abdf08eb9b10dce48fd8d60199f8 100644 (file)
@@ -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