diff --git a/app/models/conflicts_for_talk.rb b/app/models/conflicts_for_talk.rb index 88e685f..eb62fc0 100644 --- a/app/models/conflicts_for_talk.rb +++ b/app/models/conflicts_for_talk.rb @@ -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