X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/009a4dbb673507ce06d8933cd836a1284e360330..96e118a61ddeaa7abec916cfea6a411426e922f7:/app/views/api/old_relations/history.json.jbuilder diff --git a/app/views/api/old_relations/history.json.jbuilder b/app/views/api/old_relations/history.json.jbuilder index 311a80a86..944bed023 100644 --- a/app/views/api/old_relations/history.json.jbuilder +++ b/app/views/api/old_relations/history.json.jbuilder @@ -1,5 +1,5 @@ json.partial! "api/root_attributes" -json.elements(@elems) do |old_relation| - json.partial! old_relation +json.elements do + json.array! @elems, :partial => "old_relation", :as => :old_relation end