diff options
author | Azul <azul@leap.se> | 2014-05-13 10:52:55 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-13 10:52:55 +0200 |
commit | 0261e82686ec4fcfc8b633664fadb1dd6d9c8070 (patch) | |
tree | 7c8401d59f2bccf5c9e46263e89be26afcea4857 /app/models/service_level.rb | |
parent | 86eb9062f1e81302647bf18ce0f5fd981202b68a (diff) |
keep empty email field if user removed prefill
We should respect the users choice. We can still get their email from the user id if we really need to.
Diffstat (limited to 'app/models/service_level.rb')
-rw-r--r-- | app/models/service_level.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/service_level.rb b/app/models/service_level.rb index 5dd8838..a8df55b 100644 --- a/app/models/service_level.rb +++ b/app/models/service_level.rb @@ -24,6 +24,14 @@ class ServiceLevel end end + def provides?(service) + services.include? service + end + + def services + config_hash[:services] || [] + end + protected def limited_cert? |