Commit 303fb06c96abc43357a9e121fdfef1647f84fd49
1 parent
401041cf
Exists in
master
and in
4 other branches
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,10 +130,6 @@ class Event < ActiveRecord::Base | ||
| 130 | target if target_type == "MergeRequest" | 130 | target if target_type == "MergeRequest" |
| 131 | end | 131 | end |
| 132 | 132 | ||
| 133 | - def author | ||
| 134 | - @author ||= User.find(author_id) | ||
| 135 | - end | ||
| 136 | - | ||
| 137 | def action_name | 133 | def action_name |
| 138 | if closed? | 134 | if closed? |
| 139 | "closed" | 135 | "closed" |