[openstreetmap-website] Changeset discussion feature (#772)

Łukasz Gurdek notifications at github.com
Sat Aug 2 16:35:24 UTC 2014


> @@ -36,8 +41,10 @@ def create
>    # Return XML giving the basic info about the changeset. Does not
>    # return anything about the nodes, ways and relations in the changeset.
>    def read
> -    changeset = Changeset.find(params[:id])
> -    render :text => changeset.to_xml.to_s, :content_type => "text/xml"
> +    @changeset = Changeset.find(params[:id])
> +    @comments = params['include_discussion'].presence ? @changeset.comments.includes(:author) : false

Fixed in 28cee08.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/772/files#r15729914
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140802/f3815d85/attachment.html>


More information about the rails-dev mailing list