@page = (params[:page] || 1).to_i
@page_size = 20
+ @bbox = bbox
+
@edits = Changeset.find(:all,
:include => [:user, :changeset_tags],
:conditions => conditions,
# query changesets which are closed
# ('closed at' time has passed or changes limit is hit)
def conditions_closed(closed)
- return closed.nil? ? nil : ['closed_at < ? or num_changes > ?',
+ return closed.nil? ? nil : ['(closed_at < ? or num_changes > ?)',
Time.now.getutc, Changeset::MAX_ELEMENTS]
end