diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-26 16:32:12 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-26 16:32:12 +0100 |
commit | df5e41ebe0a26dcce321845593930955bead952c (patch) | |
tree | 19c19e13831035a94d5055296580763e273c823b /app/models/request_classification.rb | |
parent | 6db8ee1e2d952700cf12f9cf54573012a211f74a (diff) | |
parent | b90a5f5df568dc68e971a7d43532b5163f6cd08e (diff) |
Merge remote-tracking branch 'jpmckinney_github/class_methods' into rails-3-develop
Diffstat (limited to 'app/models/request_classification.rb')
-rw-r--r-- | app/models/request_classification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/request_classification.rb b/app/models/request_classification.rb index eccf610d7..ab0cd1f21 100644 --- a/app/models/request_classification.rb +++ b/app/models/request_classification.rb @@ -16,7 +16,7 @@ class RequestClassification < ActiveRecord::Base # return classification instances representing the top n # users, with a 'cnt' attribute representing the number # of classifications the user has made. - def RequestClassification.league_table(size, conditions=[]) + def self.league_table(size, conditions=[]) find(:all, :select => 'user_id, count(*) as cnt', :conditions => conditions, :group => 'user_id', |