gauge/app/models/conflicts_for_talk.rb

10 lines
160 B
Ruby
Raw Permalink Normal View History

class ConflictsForTalk < ApplicationRecord
def self.most
2016-10-13 04:41:45 +03:00
order(conflicts: :desc).first
end
def self.least
2016-10-13 04:41:45 +03:00
order(conflicts: :asc).first
end
end