summaryrefslogtreecommitdiff
path: root/users/app/helpers/users_helper.rb
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-07-03 14:07:59 -0700
committerjessib <jessib@leap.se>2013-07-03 14:07:59 -0700
commit6c413d3b0c4f9343fe35dbd6ad65b87dca4b4831 (patch)
tree115808c1aa70bb7a3257bbc15779b9b942950c27 /users/app/helpers/users_helper.rb
parent3ead553bdd6b28c8210d9dcb764db407ba580c23 (diff)
Accounts can be enabled or not. Admins can edit this property.
Diffstat (limited to 'users/app/helpers/users_helper.rb')
-rw-r--r--users/app/helpers/users_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/users/app/helpers/users_helper.rb b/users/app/helpers/users_helper.rb
index 9feae62..f731aab 100644
--- a/users/app/helpers/users_helper.rb
+++ b/users/app/helpers/users_helper.rb
@@ -33,7 +33,8 @@ module UsersHelper
def user_field(field)
value = @user.send(field)
value = value.to_s(:long) if field.end_with? '_at'
- value || 'not set'
+ value = 'not set' if value.nil?
+ value
end
def wrapped(item, options = {})