summaryrefslogtreecommitdiff
path: root/app/models/gemeinschaft_setup.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-20 19:06:19 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-20 19:06:19 +0200
commiteb0e1cc5c26275ff3e5c341404e8bc558f8312b8 (patch)
tree71f449ccd6f15422717de3ac24f87d5e888ddd79 /app/models/gemeinschaft_setup.rb
parentdf6e17e48995f25e72509986f30700d778b179b6 (diff)
parent3b27a5d45b12f6bac65da2a8e17387bfda42a2f1 (diff)
Merge branch 'develop'
Diffstat (limited to 'app/models/gemeinschaft_setup.rb')
-rw-r--r--app/models/gemeinschaft_setup.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/models/gemeinschaft_setup.rb b/app/models/gemeinschaft_setup.rb
index 4b4dd37..ee8e981 100644
--- a/app/models/gemeinschaft_setup.rb
+++ b/app/models/gemeinschaft_setup.rb
@@ -20,6 +20,28 @@ class GemeinschaftSetup < ActiveRecord::Base
before_validation :format_default_area_code
+ def detect_attacks
+ if self[:detect_attacks] == nil
+ return true
+ end
+ return self[:detect_attacks]
+ end
+
+ def detect_attacks=(value)
+ self[:detect_attacks] = value
+ end
+
+ def report_attacks
+ if self[:report_attacks] == nil
+ return true
+ end
+ return self[:report_attacks]
+ end
+
+ def report_attacks=(value)
+ self[:report_attacks] = value
+ end
+
private
def expire_cache
ActionController::Base.expire_page(Rails.application.routes.url_helpers.new_gemeinschaft_setup_path)