From 7fcb76aa9a627ef18bfdecf77dfb096ba03d0490 Mon Sep 17 00:00:00 2001 From: mmd-osm Date: Wed, 22 Jan 2020 22:47:47 +0100 Subject: [PATCH] JSON: move root_attributes to shared folder --- app/views/api/{map => }/_root_attributes.json.jbuilder | 0 app/views/api/nodes/index.json.jbuilder | 2 +- app/views/api/nodes/show.json.jbuilder | 2 +- app/views/api/old_nodes/history.json.jbuilder | 2 +- app/views/api/old_nodes/version.json.jbuilder | 2 +- app/views/api/old_relations/history.json.jbuilder | 2 +- app/views/api/old_relations/version.json.jbuilder | 2 +- app/views/api/old_ways/history.json.jbuilder | 2 +- app/views/api/old_ways/version.json.jbuilder | 2 +- app/views/api/relations/full.json.jbuilder | 2 +- app/views/api/relations/index.json.jbuilder | 2 +- app/views/api/relations/relations_for_node.json.jbuilder | 2 +- app/views/api/relations/relations_for_relation.json.jbuilder | 2 +- app/views/api/relations/relations_for_way.json.jbuilder | 2 +- app/views/api/relations/show.json.jbuilder | 2 +- app/views/api/ways/full.json.jbuilder | 2 +- app/views/api/ways/index.json.jbuilder | 2 +- app/views/api/ways/show.json.jbuilder | 2 +- app/views/api/ways/ways_for_node.json.jbuilder | 2 +- 19 files changed, 18 insertions(+), 18 deletions(-) rename app/views/api/{map => }/_root_attributes.json.jbuilder (100%) diff --git a/app/views/api/map/_root_attributes.json.jbuilder b/app/views/api/_root_attributes.json.jbuilder similarity index 100% rename from app/views/api/map/_root_attributes.json.jbuilder rename to app/views/api/_root_attributes.json.jbuilder diff --git a/app/views/api/nodes/index.json.jbuilder b/app/views/api/nodes/index.json.jbuilder index f42f7563b..3e3ceb4cc 100644 --- a/app/views/api/nodes/index.json.jbuilder +++ b/app/views/api/nodes/index.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@nodes) do |node| json.partial! node diff --git a/app/views/api/nodes/show.json.jbuilder b/app/views/api/nodes/show.json.jbuilder index c87777a87..9974da82f 100644 --- a/app/views/api/nodes/show.json.jbuilder +++ b/app/views/api/nodes/show.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements([@node]) do |node| json.partial! node diff --git a/app/views/api/old_nodes/history.json.jbuilder b/app/views/api/old_nodes/history.json.jbuilder index b0e97e832..96e8cca2d 100644 --- a/app/views/api/old_nodes/history.json.jbuilder +++ b/app/views/api/old_nodes/history.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@elems) do |old_node| json.partial! old_node diff --git a/app/views/api/old_nodes/version.json.jbuilder b/app/views/api/old_nodes/version.json.jbuilder index 992230bc0..f63e07d43 100644 --- a/app/views/api/old_nodes/version.json.jbuilder +++ b/app/views/api/old_nodes/version.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements([@old_element]) do |old_node| json.partial! old_node diff --git a/app/views/api/old_relations/history.json.jbuilder b/app/views/api/old_relations/history.json.jbuilder index c5dacae0a..311a80a86 100644 --- a/app/views/api/old_relations/history.json.jbuilder +++ b/app/views/api/old_relations/history.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@elems) do |old_relation| json.partial! old_relation diff --git a/app/views/api/old_relations/version.json.jbuilder b/app/views/api/old_relations/version.json.jbuilder index b4018429b..5b33e4b85 100644 --- a/app/views/api/old_relations/version.json.jbuilder +++ b/app/views/api/old_relations/version.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements([@old_element]) do |old_relation| json.partial! old_relation diff --git a/app/views/api/old_ways/history.json.jbuilder b/app/views/api/old_ways/history.json.jbuilder index b231d7de1..b5cf80d09 100644 --- a/app/views/api/old_ways/history.json.jbuilder +++ b/app/views/api/old_ways/history.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@elems) do |old_way| json.partial! old_way diff --git a/app/views/api/old_ways/version.json.jbuilder b/app/views/api/old_ways/version.json.jbuilder index bb261c1c5..c66488526 100644 --- a/app/views/api/old_ways/version.json.jbuilder +++ b/app/views/api/old_ways/version.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements([@old_element]) do |old_way| json.partial! old_way diff --git a/app/views/api/relations/full.json.jbuilder b/app/views/api/relations/full.json.jbuilder index 268de01ca..98cbbfc40 100644 --- a/app/views/api/relations/full.json.jbuilder +++ b/app/views/api/relations/full.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" all = @nodes + @ways + @relations diff --git a/app/views/api/relations/index.json.jbuilder b/app/views/api/relations/index.json.jbuilder index 25c54fc6f..f170cb150 100644 --- a/app/views/api/relations/index.json.jbuilder +++ b/app/views/api/relations/index.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@relations) do |relation| json.partial! relation diff --git a/app/views/api/relations/relations_for_node.json.jbuilder b/app/views/api/relations/relations_for_node.json.jbuilder index 25c54fc6f..f170cb150 100644 --- a/app/views/api/relations/relations_for_node.json.jbuilder +++ b/app/views/api/relations/relations_for_node.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@relations) do |relation| json.partial! relation diff --git a/app/views/api/relations/relations_for_relation.json.jbuilder b/app/views/api/relations/relations_for_relation.json.jbuilder index 25c54fc6f..f170cb150 100644 --- a/app/views/api/relations/relations_for_relation.json.jbuilder +++ b/app/views/api/relations/relations_for_relation.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@relations) do |relation| json.partial! relation diff --git a/app/views/api/relations/relations_for_way.json.jbuilder b/app/views/api/relations/relations_for_way.json.jbuilder index 25c54fc6f..f170cb150 100644 --- a/app/views/api/relations/relations_for_way.json.jbuilder +++ b/app/views/api/relations/relations_for_way.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@relations) do |relation| json.partial! relation diff --git a/app/views/api/relations/show.json.jbuilder b/app/views/api/relations/show.json.jbuilder index 682ef0a24..7f85d0f25 100644 --- a/app/views/api/relations/show.json.jbuilder +++ b/app/views/api/relations/show.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements([@relation]) do |relation| json.partial! relation diff --git a/app/views/api/ways/full.json.jbuilder b/app/views/api/ways/full.json.jbuilder index 9bd234fbe..bebad5e9f 100644 --- a/app/views/api/ways/full.json.jbuilder +++ b/app/views/api/ways/full.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" all = @nodes + [@way] diff --git a/app/views/api/ways/index.json.jbuilder b/app/views/api/ways/index.json.jbuilder index e1dbd4347..19e59cfb8 100644 --- a/app/views/api/ways/index.json.jbuilder +++ b/app/views/api/ways/index.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@ways) do |way| json.partial! way diff --git a/app/views/api/ways/show.json.jbuilder b/app/views/api/ways/show.json.jbuilder index e5cd31fed..acb93c1e7 100644 --- a/app/views/api/ways/show.json.jbuilder +++ b/app/views/api/ways/show.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements([@way]) do |way| json.partial! way diff --git a/app/views/api/ways/ways_for_node.json.jbuilder b/app/views/api/ways/ways_for_node.json.jbuilder index e1dbd4347..19e59cfb8 100644 --- a/app/views/api/ways/ways_for_node.json.jbuilder +++ b/app/views/api/ways/ways_for_node.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" json.elements(@ways) do |way| json.partial! way -- 2.39.5