Defect #29838 » 0002-Fix-Rubocop-offense-Rails-FindBy-Use-find_by-instead.patch
app/models/project.rb | ||
---|---|---|
300 | 300 |
activity_id = Setting.commit_logtime_activity_id.to_i |
301 | 301 |
if activity_id > 0 |
302 | 302 |
activities |
303 |
.where('id = ? OR parent_id = ?', activity_id, activity_id) |
|
304 |
.first |
|
303 |
.find_by('id = ? OR parent_id = ?', activity_id, activity_id) |
|
305 | 304 |
end |
306 | 305 |
end |
307 | 306 |
- « Previous
- 1
- 2
- Next »