From 588b77244b6d77e667cc5ac0fd6d39b81df280e4 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 2 Apr 2024 16:11:09 +0300 Subject: [PATCH] Rename api OldController to OldElementsController --- .../api/{old_controller.rb => old_elements_controller.rb} | 2 +- app/controllers/api/old_nodes_controller.rb | 2 +- app/controllers/api/old_relations_controller.rb | 2 +- app/controllers/api/old_ways_controller.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename app/controllers/api/{old_controller.rb => old_elements_controller.rb} (97%) diff --git a/app/controllers/api/old_controller.rb b/app/controllers/api/old_elements_controller.rb similarity index 97% rename from app/controllers/api/old_controller.rb rename to app/controllers/api/old_elements_controller.rb index 5b16b453d..6a468a900 100644 --- a/app/controllers/api/old_controller.rb +++ b/app/controllers/api/old_elements_controller.rb @@ -2,7 +2,7 @@ # into one place. as it turns out, the API methods for historical # nodes, ways and relations are basically identical. module Api - class OldController < ApiController + class OldElementsController < ApiController before_action :check_api_readable before_action :check_api_writable, :only => [:redact] before_action :setup_user_auth, :only => [:history, :show] diff --git a/app/controllers/api/old_nodes_controller.rb b/app/controllers/api/old_nodes_controller.rb index 7d0d340f7..c2831c48b 100644 --- a/app/controllers/api/old_nodes_controller.rb +++ b/app/controllers/api/old_nodes_controller.rb @@ -1,5 +1,5 @@ module Api - class OldNodesController < OldController + class OldNodesController < OldElementsController private def lookup_old_element diff --git a/app/controllers/api/old_relations_controller.rb b/app/controllers/api/old_relations_controller.rb index ddc1684ef..4679384dd 100644 --- a/app/controllers/api/old_relations_controller.rb +++ b/app/controllers/api/old_relations_controller.rb @@ -1,5 +1,5 @@ module Api - class OldRelationsController < OldController + class OldRelationsController < OldElementsController private def lookup_old_element diff --git a/app/controllers/api/old_ways_controller.rb b/app/controllers/api/old_ways_controller.rb index 66f3ce38b..0afa3059c 100644 --- a/app/controllers/api/old_ways_controller.rb +++ b/app/controllers/api/old_ways_controller.rb @@ -1,5 +1,5 @@ module Api - class OldWaysController < OldController + class OldWaysController < OldElementsController private def lookup_old_element -- 2.39.5