Test broken by r11296.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11297 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-02-02 09:49:26 +00:00
parent 9e0723c11b
commit 137aa1cf66
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Token < ActiveRecord::Base
token = find_by_action_and_value(action, key)
if token && token.user && token.user.active?
if validity_days.nil? || (token.created_on > validity_days.ago)
if validity_days.nil? || (token.created_on > validity_days.days.ago)
token.user
end
end