Event already has author relation
This commit is contained in:
parent
401041cfd6
commit
303fb06c96
1 changed files with 0 additions and 4 deletions
|
@ -130,10 +130,6 @@ class Event < ActiveRecord::Base
|
||||||
target if target_type == "MergeRequest"
|
target if target_type == "MergeRequest"
|
||||||
end
|
end
|
||||||
|
|
||||||
def author
|
|
||||||
@author ||= User.find(author_id)
|
|
||||||
end
|
|
||||||
|
|
||||||
def action_name
|
def action_name
|
||||||
if closed?
|
if closed?
|
||||||
"closed"
|
"closed"
|
||||||
|
|
Loading…
Reference in a new issue