mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 17:46:07 +10:00
Event already has author relation
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user