diff options
author | Julian Pawlowski <julian.pawlowski@gmail.com> | 2013-01-16 21:06:22 +0100 |
---|---|---|
committer | Julian Pawlowski <julian.pawlowski@gmail.com> | 2013-01-16 21:06:22 +0100 |
commit | 6a3eb3a21958e4bc1a73e5774c3717fc01ee64e0 (patch) | |
tree | 933902730c79edb8f1f8372ce6af6217433c9a84 /app/models/gemeinschaft_setup.rb | |
parent | ea70e08534319dd3f15c34859c498771fa7d9b32 (diff) | |
parent | a74efe4bb1b5afeaf892d18ba2e7969ed17b4099 (diff) |
Merge branch 'develop' of https://github.com/amooma/GS5 into develop
Diffstat (limited to 'app/models/gemeinschaft_setup.rb')
-rw-r--r-- | app/models/gemeinschaft_setup.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/gemeinschaft_setup.rb b/app/models/gemeinschaft_setup.rb index b445b21..0b3eeae 100644 --- a/app/models/gemeinschaft_setup.rb +++ b/app/models/gemeinschaft_setup.rb @@ -5,4 +5,13 @@ class GemeinschaftSetup < ActiveRecord::Base accepts_nested_attributes_for :sip_domain belongs_to :country belongs_to :language + + # Remove the cache which was created by the heater rake task. + # + after_create :expire_cache + + private + def expire_cache + ActionController::Base.expire_page(Rails.application.routes.url_helpers.new_gemeinschaft_setup_path) + end end |