Commit 66e068bb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix event creation

parent 9e3094b2
...@@ -309,7 +309,7 @@ class Event < ActiveRecord::Base ...@@ -309,7 +309,7 @@ class Event < ActiveRecord::Base
def reset_project_activity def reset_project_activity
if project if project
project.update_column(:last_activity_at, event.created_at) project.update_column(:last_activity_at, self.created_at)
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment