Fixed bug with invalid event author

This commit is contained in:
Dmitriy Zaporozhets 2013-08-14 14:19:11 +03:00
parent c17280f55a
commit f989140b77
1 changed files with 5 additions and 5 deletions

View File

@ -29,11 +29,11 @@ class ActivityObserver < BaseObserver
def create_event(record, status) def create_event(record, status)
Event.create( Event.create(
project: record.project, project: record.project,
target_id: record.id, target_id: record.id,
target_type: record.class.name, target_type: record.class.name,
action: status, action: status,
author_id: record.author_id author_id: current_user
) )
end end
end end