hide passwords/ip addrs from json/xml apis

This commit is contained in:
albert
2011-09-06 11:27:57 -04:00
parent 4de74a5f6b
commit 0b71e36e3d
2 changed files with 10 additions and 0 deletions

View File

@@ -44,6 +44,11 @@ module Danbooru
"case #{table_name}.id " + conditions.join(" ") + " end"
end
def serializable_hash(options = {})
options = {:except => [:uploader_ip_addr, :updater_ip_addr, :creator_ip_addr, :ip_addr]}.merge(options ||= {})
super(options)
end
end
end
end