Fix up most and last class methods
This commit is contained in:
parent
a8d05ea625
commit
1a80614471
|
@ -1,9 +1,9 @@
|
||||||
class ConflictsForTalk < ApplicationRecord
|
class ConflictsForTalk < ApplicationRecord
|
||||||
def self.most
|
def self.most
|
||||||
first
|
order(conflicts: :desc).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.least
|
def self.least
|
||||||
last
|
order(conflicts: :asc).first
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue