Commit 6bc9249b38c060c7f67e40b7d8a9ce5f2f351457
Exists in
master
and in
4 other branches
Merge pull request #3034 from Andrew8xx8/patch-2
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" |