summaryrefslogtreecommitdiff
path: root/users/app/helpers/users_helper.rb
diff options
context:
space:
mode:
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 = {})