Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10177 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-08-08 18:47:52 +00:00
parent e0faf5cf84
commit 2e4f3d5a60
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ class Issue < ActiveRecord::Base
if new_record?
nil
else
journals.first(:order => "#{Journal.table_name}.id DESC").try(:id)
journals.maximum(:id)
end
end