diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-05-02 15:15:05 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-05-02 15:15:05 +0100 |
commit | d6a5e30665c9642b5d9977e1caf7f4f8a32f8b84 (patch) | |
tree | af4693ac9f8d878f3d6c83ede5b8c59e43147b13 /app/models/user.rb | |
parent | a7073881fed6ec3f46841da96380d4b5643393a2 (diff) | |
parent | 2a1e80d1917e26caf13a20c199f5333be51caac0 (diff) |
Merge branch 'purge-requests' into develop
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 59a84b7aa..73d65a8ca 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -422,5 +422,12 @@ class User < ActiveRecord::Base end return true end + + after_save(:purge_in_cache) + def purge_in_cache + # XXX should only be if specific attributes have changed + self.info_requests.each {|x| x.purge_in_cache} + end + end |