Fixed bug #1816 - the timeout updating logic should have been in a before_save handler, not in save_with_tags.
This commit is contained in:
parent
ed68d524de
commit
1ceb4ab9ba
5 changed files with 28 additions and 25 deletions
|
@ -815,12 +815,10 @@ class AmfController < ApplicationController
|
|||
return user
|
||||
end
|
||||
|
||||
# Update changeset timeout
|
||||
# i.e. one hour after current edit
|
||||
|
||||
def updatetimeout(changeset_id) #:doc:
|
||||
# save the changeset identified by +changeset_id+. this
|
||||
# automatically sets the close timeout appropriately.
|
||||
def updatetimeout(changeset_id)
|
||||
cs = Changeset.find(changeset_id)
|
||||
cs.closed_at = Time.now.getutc + Changeset::IDLE_TIMEOUT
|
||||
cs.save!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue