Merge pull request #3034 from Andrew8xx8/patch-2

Event already has author relation
5-0-stable
Dmitriy Zaporozhets 2013-02-19 03:27:42 -08:00
commit 6bc9249b38
1 changed files with 0 additions and 4 deletions

View File

@ -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"