diff options
Diffstat (limited to 'app/models/public_body.rb')
-rw-r--r-- | app/models/public_body.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index a18af8c69..11c6f6033 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -547,6 +547,11 @@ class PublicBody < ActiveRecord::Base } end + after_save(:purge_in_cache) + def purge_in_cache + self.info_requests.each {|x| x.purge_in_cache} + end + end |