Fix up most and last class methods
This commit is contained in:
parent
a8d05ea625
commit
1a80614471
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue