summaryrefslogtreecommitdiff
path: root/users/app/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/models/user.rb')
-rw-r--r--users/app/models/user.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index 621ff4e..720f5a9 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -102,12 +102,12 @@ class User < CouchRest::Model::Base
def desired_service_level
code = self.desired_service_level_code || APP_CONFIG[:default_service_level]
- ServiceLevel.new({level: code})
+ ServiceLevel.new({id: code})
end
def effective_service_level
- code = self.effective_service_level_code || self.desired_service_level.level
- ServiceLevel.new({level: code})
+ code = self.effective_service_level_code || self.desired_service_level.id
+ ServiceLevel.new({id: code})
end
protected