Fixed bug in changeset closing and querying where the number of elements exceeded the maximum. Added a fixture for this.

This commit is contained in:
Matt Amos 2009-02-07 17:45:27 +00:00
parent 509832c5b3
commit 76708eefcf
5 changed files with 40 additions and 9 deletions

View file

@ -46,7 +46,7 @@ class Changeset < ActiveRecord::Base
end
def set_closed_time_now
unless is_open?
if is_open?
self.closed_at = Time.now
end
end