add saved search gallery link, can only view your own saved searches, normalize saved search categories

This commit is contained in:
r888888888
2015-11-24 16:26:04 -08:00
parent 90eb374d06
commit 89794a7ef2
7 changed files with 35 additions and 15 deletions

View File

@@ -109,6 +109,7 @@ class SavedSearch < ActiveRecord::Base
end
def normalize
self.category = category.strip.gsub(/\s+/, "_").downcase if category
self.tag_query = SavedSearch.normalize(tag_query)
end

View File

@@ -460,10 +460,8 @@ class User < ActiveRecord::Base
def max_saved_searches
if is_platinum?
1_000
elsif is_gold?
200
else
100
250
end
end