Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/4642'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Apr 2, 2024
2 parents 8d4d2c3 + 588b772 commit 7d71267
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/old_nodes_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Api
class OldNodesController < OldController
class OldNodesController < OldElementsController
private

def lookup_old_element
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/old_relations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Api
class OldRelationsController < OldController
class OldRelationsController < OldElementsController
private

def lookup_old_element
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/old_ways_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Api
class OldWaysController < OldController
class OldWaysController < OldElementsController
private

def lookup_old_element
Expand Down

0 comments on commit 7d71267

Please sign in to comment.