[openstreetmap-website] Changeset discussion feature (#772)
Tom Hughes
notifications at github.com
Fri Jul 25 14:20:01 UTC 2014
> + # Return a copy of the updated changeset
> + render :action => :show
> + end
> +
> + ##
> + # Sets visible flag on comment to true
> + def unhide_comment
> + # Check the arguments are sane
> + raise OSM::APIBadUserInput.new("No id was given") unless params[:id]
> +
> + # Extract the arguments
> + id = params[:id].to_i
> +
> + # Find the changeset and check it is valid
> + @comment = ChangesetComment.find(id)
> + raise OSM::APINotFoundError unless @comment
Same comment as above.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/772/files#r15402617
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140725/0a7213a4/attachment.html>
More information about the rails-dev
mailing list