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

Tom Hughes notifications at github.com
Fri Jul 25 14:19:32 UTC 2014


> +    # Return a copy of the updated changeset
> +    render :action => :show
> +  end
> +
> +  ## 
> +  # Removes a subscriber from the changeset
> +  def unsubscribe 
> +    # 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
> +    @changeset = Changeset.find(id)
> +    raise OSM::APINotFoundError unless @changeset

Same comment as above.

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


More information about the rails-dev mailing list