fix project.last_activity spec
This commit is contained in:
parent
cd3d50caf2
commit
d246a68a24
2 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def last_activity
|
||||
events.order("created_at DESC").first || nil
|
||||
events.order("created_at ASC").last
|
||||
end
|
||||
|
||||
def last_activity_date
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue