[openstreetmap-website] Changeset discussion feature (#772)
Tom Hughes
notifications at github.com
Fri Jul 25 14:40:53 UTC 2014
> @@ -0,0 +1,26 @@
> +changeset_attributes = { :id => changeset.id, :created_at => changeset.created_at.xmlschema, :closed_at => changeset.closed_at, :open => changeset.is_open? }
> +changeset_attributes[:uid] = changeset.user.id if changeset.user.data_public?
> +changeset_attributes[:user] = changeset.user.display_name if changeset.user.data_public?
> +changeset.bbox.to_unscaled.add_bounds_to(changeset_attributes, '_') if changeset.bbox.complete?
> +
> +xml.changeset(changeset_attributes) do |asterx|
> + changeset.tags.each do |k,v|
> + xml.tag :k => k, :v => v
> + end
> + if @comments
> + xml.discussion do
Personally I would call this tag `comments` not `discussion`. Don't know what @zerebubuth thinks, as steward of the api?
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/772/files#r15403843
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140725/1ea47a47/attachment-0001.html>
More information about the rails-dev
mailing list