X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e731dd71a77ad4ad1e9db22535e89444bb98e5d9..cbcc7dc49f83f60489fde04b0750cf081e7439fb:/app/views/api/changesets/_changeset.builder?ds=sidebyside 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