lib/shelly/cloudfile.rb in shelly-0.0.20.pre vs lib/shelly/cloudfile.rb in shelly-0.0.20

- old
+ new

@@ -37,10 +37,11 @@ def fetch_users response = shelly.apps_users(clouds) response.inject({}) do |result, app| result[app['code_name']] = app['users'].map do |user| - "#{user['email']} (#{user['name']})" + name = user['name'] ? " (#{user['name']})" : "" + "#{user['email']}" + name end result end end end