Fix up most and last class methods

This commit is contained in:
Petko Bordjukov 2016-10-13 04:41:45 +03:00
parent a8d05ea625
commit 1a80614471
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
class ConflictsForTalk < ApplicationRecord
def self.most
first
order(conflicts: :desc).first
end
def self.least
last
order(conflicts: :asc).first
end
end