[openstreetmap-website] Creating a user configurable limit for results of a changeset query (#535)
emacsen
notifications at github.com
Thu Dec 5 13:06:22 UTC 2013
> @@ -202,6 +202,12 @@ def query
> bbox = BoundingBox.from_bbox_params(params)
> end
>
> + if params[:limit] and params[:limit].to_i > 0 and params[:limit].to_i < 10000
> + limit = params[:limit].to_i
> + else
> + limit = 100
This code is all but entire stolen from the notes controller, and the note controller raises that input but not on limits.
I suppose they both need that then?
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/535/files#r8128021
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20131205/8b0e680d/attachment.html>
More information about the rails-dev
mailing list