blob: 0b3eeaee2d465d88030120a96d8601c42351ec19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class GemeinschaftSetup < ActiveRecord::Base
belongs_to :user
accepts_nested_attributes_for :user
belongs_to :sip_domain
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
|