]> git.openstreetmap.org Git - rails.git/commitdiff
Rename api OldController to OldElementsController
authorAnton Khorev <tony29@yandex.ru>
Tue, 2 Apr 2024 13:11:09 +0000 (16:11 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 2 Apr 2024 13:11:09 +0000 (16:11 +0300)
app/controllers/api/old_elements_controller.rb [moved from app/controllers/api/old_controller.rb with 97% similarity]
app/controllers/api/old_nodes_controller.rb
app/controllers/api/old_relations_controller.rb
app/controllers/api/old_ways_controller.rb

similarity index 97%
rename from app/controllers/api/old_controller.rb
rename to app/controllers/api/old_elements_controller.rb
index 5b16b453d6f92f1acbb65064c49ce2201325f2a4..6a468a900631953247414ecee55145745c393e62 100644 (file)
@@ -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]
index 7d0d340f7928cc38883d9cb5edb25912454b5aa3..c2831c48ba558e34b0b937f0a423d1818d571591 100644 (file)
@@ -1,5 +1,5 @@
 module Api
-  class OldNodesController < OldController
+  class OldNodesController < OldElementsController
     private
 
     def lookup_old_element
index ddc1684efbd10829efe24229e7ef62d7f3ed5b1e..4679384dd3877084ad9378a8e17b6aa75e9c606d 100644 (file)
@@ -1,5 +1,5 @@
 module Api
-  class OldRelationsController < OldController
+  class OldRelationsController < OldElementsController
     private
 
     def lookup_old_element
index 66f3ce38bbce861d3b798ccb2331e7fbab6c9dcb..0afa3059ccfce9a9ff1b350e7fbe1f5c3f41b82d 100644 (file)
@@ -1,5 +1,5 @@
 module Api
-  class OldWaysController < OldController
+  class OldWaysController < OldElementsController
     private
 
     def lookup_old_element