Merge pull request #3034 from Andrew8xx8/patch-2
Event already has author relation
This commit is contained in:
commit
6bc9249b38
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…
Add table
Reference in a new issue