around_filter :api_call_handle_error, :except => [:list]
around_filter :web_timeout, :only => [:list]
around_filter :api_call_handle_error, :except => [:list]
around_filter :web_timeout, :only => [:list]
- prev_elt = elt.class.find(:first, :conditions =>
- ['id = ? and version = ?',
- elt.id, elt.version])
+ prev_elt = elt.class.where(:id => elt.id, :version => elt.version).first
unless elt.visible
# if the element isn't visible then it must have been deleted, so
# output the *previous* XML
unless elt.visible
# if the element isn't visible then it must have been deleted, so
# output the *previous* XML
@edits = Changeset.find(:all,
:include => [:user, :changeset_tags],
:conditions => conditions,
@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)
# query changesets which are closed
# ('closed at' time has passed or changes limit is hit)
def conditions_closed(closed)
# eliminate empty changesets (where the bbox has not been set)
# this should be applied to all changeset list displays
def conditions_nonempty()
# eliminate empty changesets (where the bbox has not been set)
# this should be applied to all changeset list displays
def conditions_nonempty()