fixes to user search

This commit is contained in:
albert
2013-02-21 12:42:41 -05:00
parent 762bbd2caf
commit 78f1d0f69a
24 changed files with 48 additions and 30 deletions

View File

@@ -220,7 +220,8 @@ class User < ActiveRecord::Base
def level_hash
return {
"Member" => Levels::MEMBER,
"Privileged" => Levels::PRIVILEGED,
"Gold" => Levels::PRIVILEGED,
"Platinum" => Levels::PLATINUM,
"Builder" => Levels::BUILDER,
"Contributor" => Levels::CONTRIBUTOR,
"Janitor" => Levels::JANITOR,
@@ -427,13 +428,13 @@ class User < ActiveRecord::Base
def favorite_limit
return nil
if is_privileged?
20_000
elsif is_platinum?
nil
else
4_000
end
# if is_privileged?
# 20_000
# elsif is_platinum?
# nil
# else
# 4_000
# end
end
end