work on saved searches embedded in user profiles

This commit is contained in:
r888888888
2016-08-19 16:40:14 -07:00
parent 28aa7f30d5
commit 5de9adf0f5
7 changed files with 60 additions and 14 deletions

View File

@@ -81,4 +81,8 @@ class Cache
def self.sanitize(key)
key.gsub(/\W/) {|x| "%#{x.ord}"}.slice(0, 230)
end
def self.hash(string)
CityHash.hash64(string).to_s(36)
end
end