aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/request_classification.rb
diff options
context:
space:
mode:
authorJames McKinney <james@slashpoundbang.com>2015-05-21 15:12:57 -0400
committerJames McKinney <james@slashpoundbang.com>2015-05-21 15:12:57 -0400
commitb90a5f5df568dc68e971a7d43532b5163f6cd08e (patch)
treee23905770c2efff46f879ae4b569fbaca086e106 /app/models/request_classification.rb
parentdd289908964c8d60e33ce71724dc9e36c3beb765 (diff)
Declare class methods the idiomatic Ruby way
Diffstat (limited to 'app/models/request_classification.rb')
-rw-r--r--app/models/request_classification.rb2
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',