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

View file

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