Skip to content

Commit 5c762cc

Browse files
committed
Add geo_location to user_card serializer
1 parent 39bdc06 commit 5c762cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugin.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class SiteSettings::TypeSupervisor
9393
register_editable_user_custom_field :geo_location if defined? register_editable_user_custom_field
9494
register_editable_user_custom_field geo_location: {} if defined? register_editable_user_custom_field
9595
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'] }
9697

9798
require_dependency 'directory_item_serializer'
9899
class ::DirectoryItemSerializer::UserSerializer

0 commit comments

Comments
 (0)