Event already has author relation

This commit is contained in:
Andrew Kulakov 2013-02-19 15:22:29 +04:00
parent 401041cfd6
commit 303fb06c96

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"