gauge/app/models/conflicts.rb
2016-10-13 06:10:56 +03:00

10 lines
165 B
Ruby

class Conflicts < ApplicationRecord
def self.most
order(conflicts: :desc).try(:first)
end
def self.least
order(conflicts: :asc).try(:first)
end
end