Commit 6bc9249b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #3034 from Andrew8xx8/patch-2

Event already has author relation
parents 401041cf 303fb06c
......@@ -130,10 +130,6 @@ class Event < ActiveRecord::Base
target if target_type == "MergeRequest"
end
def author
@author ||= User.find(author_id)
end
def action_name
if closed?
"closed"
......
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