Commit 303fb06c96abc43357a9e121fdfef1647f84fd49

Authored by Andrew Kulakov
1 parent 401041cf

Event already has author relation

Showing 1 changed file with 0 additions and 4 deletions   Show diff stats
app/models/event.rb
... ... @@ -130,10 +130,6 @@ class Event < ActiveRecord::Base
130 130 target if target_type == "MergeRequest"
131 131 end
132 132  
133   - def author
134   - @author ||= User.find(author_id)
135   - end
136   -
137 133 def action_name
138 134 if closed?
139 135 "closed"
... ...