diff options
author | Azul <azul@leap.se> | 2014-04-17 11:42:13 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-04-17 11:42:13 +0200 |
commit | 8cc5ba134f6c5a1a06d91407aa78b962545c54ac (patch) | |
tree | 889e33e956ff52bb9246ae1e866b4ba131d20bae /app/models | |
parent | 3513ad74f950b113af1ba1e3d06bc6a55c48fde5 (diff) |
initial commit for the service level api
:api/service will return a hash of the current users service level
This is failiing if the user is not logged in. Instead it should return the service description for an anonymous user.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/service_level.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/service_level.rb b/app/models/service_level.rb index 299aaf1..31a713b 100644 --- a/app/models/service_level.rb +++ b/app/models/service_level.rb @@ -16,4 +16,5 @@ class ServiceLevel APP_CONFIG[:service_levels][@id] end + delegate :to_json, to: :config_hash end |