From: Tom Hughes Date: Tue, 18 Feb 2025 20:13:31 +0000 (+0000) Subject: Avoid redefining object_id method X-Git-Tag: live~95 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5eed367f714368e07467603cc0bd26c5dd7f4228?hp=--cc Avoid redefining object_id method This fixes a ruby 3.4 warning. --- 5eed367f714368e07467603cc0bd26c5dd7f4228 diff --git a/lib/osm.rb b/lib/osm.rb index 46f37036f..6710ee88e 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -51,14 +51,14 @@ module OSM # Raised when to delete an already-deleted object. class APIAlreadyDeletedError < APIError - def initialize(object = "object", object_id = "") - @object = object - @object_id = object_id + def initialize(type = "object", id = "") + @type = type + @id = id - super("The #{object} with the id #{object_id} has already been deleted") + super("The #{type} with the id #{id} has already been deleted") end - attr_reader :object, :object_id + attr_reader :type, :id def status :gone