X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..cbcc7dc49f83f60489fde04b0750cf081e7439fb:/app/views/api/changesets/_changeset.builder diff --git a/app/views/api/changesets/_changeset.builder b/app/views/api/changesets/_changeset.builder index 292184196..e0188a10e 100644 --- a/app/views/api/changesets/_changeset.builder +++ b/app/views/api/changesets/_changeset.builder @@ -3,11 +3,11 @@ attrs = { "id" => changeset.id, "created_at" => changeset.created_at.xmlschema, - "open" => changeset.is_open?, + "open" => changeset.open?, "comments_count" => changeset.comments.length, "changes_count" => changeset.num_changes } -attrs["closed_at"] = changeset.closed_at.xmlschema unless changeset.is_open? +attrs["closed_at"] = changeset.closed_at.xmlschema unless changeset.open? changeset.bbox.to_unscaled.add_bounds_to(attrs, "_") if changeset.bbox.complete? # user attributes