X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/009a4dbb673507ce06d8933cd836a1284e360330..b935cd6fef56934c432bdce4c78a1c64b60755d1:/app/views/api/old_relations/history.json.jbuilder?ds=sidebyside 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