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