We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52aec30 commit 5185063Copy full SHA for 5185063
1 file changed
plugin.rb
@@ -94,6 +94,10 @@ class SiteSettings::TypeSupervisor
94
register_editable_user_custom_field geo_location: {} if defined? register_editable_user_custom_field
95
add_to_serializer(:user, :geo_location, false) { object.custom_fields['geo_location'] }
96
add_to_serializer(:user_card, :geo_location, false) { object.custom_fields['geo_location'] }
97
+ add_to_serializer(:user_card, :include_geo_location?) do
98
+ object.custom_fields['geo_location'].present? &&
99
+ object.custom_fields['geo_location'] != "{}"
100
+ end
101
102
require_dependency 'directory_item_serializer'
103
class ::DirectoryItemSerializer::UserSerializer
0 commit comments