Commit c7a1779b2215b1815d43c5635e026afeed8da7f4
1 parent
841e4fbd
Exists in
master
and in
4 other branches
.map -> .pluck
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/milestone.rb
app/models/project.rb
| ... | ... | @@ -147,7 +147,7 @@ class Project < ActiveRecord::Base |
| 147 | 147 | end |
| 148 | 148 | |
| 149 | 149 | def wiki_notes |
| 150 | - Note.where(noteable_id: wikis.map(&:id), noteable_type: 'Wiki', project_id: self.id) | |
| 150 | + Note.where(noteable_id: wikis.pluck(:id), noteable_type: 'Wiki', project_id: self.id) | |
| 151 | 151 | end |
| 152 | 152 | |
| 153 | 153 | def project_id | ... | ... |