summaryrefslogtreecommitdiff
path: root/users/app/models/user.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-12-03 15:07:11 -0800
committerjessib <jessib@riseup.net>2013-12-03 15:07:11 -0800
commit7d4a9658c29cad526cfe5c952f71109e8eb304e7 (patch)
treeea8e40efd34803f27bceef585a3de77a4021e973 /users/app/models/user.rb
parent35761333404e3cc2c93bca23036d0fd8e47fd10b (diff)
Some simplification of code.
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