From: Anton Khorev Date: Tue, 2 Apr 2024 13:11:09 +0000 (+0300) Subject: Rename api OldController to OldElementsController X-Git-Tag: live~674^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/588b77244b6d77e667cc5ac0fd6d39b81df280e4 Rename api OldController to OldElementsController --- 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