X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e2c0e51e4545a7e373aad3650048e0a50497e108..783528830ad1b0d5f07c8e758747841a0b4e5cc6:/app/models/changeset.rb diff --git a/app/models/changeset.rb b/app/models/changeset.rb index a65e3aebc..38cd8014f 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -25,7 +25,10 @@ class Changeset < ActiveRecord::Base MAX_TIME_OPEN = 1 # idle timeout increment, one hour as a rational number of days. - IDLE_TIMEOUT = 1.hour #Rational(1,24) + # NOTE: DO NOT CHANGE THIS TO 1.hour! when this was done the idle + # timeout changed to 1 second, which meant all changesets closed + # almost immediately. + IDLE_TIMEOUT = Rational(1,24) # Use a method like this, so that we can easily change how we # determine whether a changeset is open, without breaking code in at @@ -219,7 +222,7 @@ class Changeset < ActiveRecord::Base # can't change a closed changeset unless is_open? - raise OSM::APIChangesetAlreadyClosedError + raise OSM::APIChangesetAlreadyClosedError.new(self) end # copy the other's tags