summaryrefslogtreecommitdiff
path: root/app/models/tenant.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-20 20:58:01 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-20 20:58:01 +0100
commit8ec95de06fcddf296d392ef6d04a46e68f2429ca (patch)
tree3479e67255b6612e1eca50245bb886680d305eb7 /app/models/tenant.rb
parenta2abe7dffb8fe31687910ca4be6dc0374a247d00 (diff)
parent4e67f8769a3a3199bfb5b363fe9baa231c329a2b (diff)
Merge branch 'call_routes' into develop
Diffstat (limited to 'app/models/tenant.rb')
-rw-r--r--app/models/tenant.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/app/models/tenant.rb b/app/models/tenant.rb
index c3e2926..419ac3a 100644
--- a/app/models/tenant.rb
+++ b/app/models/tenant.rb
@@ -1,15 +1,8 @@
# encoding: UTF-8
class Tenant < ActiveRecord::Base
- attr_accessible :name, :description, :sip_domain_id, :country_id, :language_id, :from_field_pin_change_email, :from_field_voicemail_email
-
- if GsParameter.get('STRICT_INTERNAL_EXTENSION_HANDLING') == true
- attr_accessible :internal_extension_ranges
- end
-
- if GsParameter.get('STRICT_DID_HANDLING') == true
- attr_accessible :did_list
- end
+ # https://github.com/rails/strong_parameters
+ include ActiveModel::ForbiddenAttributesProtection
# Associations:
#