gauge/app/models/conflicts.rb

10 lines
165 B
Ruby
Raw Permalink Normal View History

2016-10-13 06:10:56 +03:00
class Conflicts < ApplicationRecord
def self.most
order(conflicts: :desc).try(:first)
end
2016-10-12 20:07:57 +03:00
2016-10-13 06:10:56 +03:00
def self.least
order(conflicts: :asc).try(:first)
2016-10-12 20:07:57 +03:00
end
end