@@ -3,21 +3,24 @@ defmodule CodeCorps.UserView do
33
44 use CodeCorps.PreloadHelpers ,
55 default_preloads: [
6- :slugged_route , :stripe_connect_subscriptions , :stripe_platform_card , :stripe_platform_customer ,
6+ :project_users , :slugged_route , :stripe_connect_subscriptions ,
7+ :stripe_platform_card , :stripe_platform_customer ,
78 :organization_memberships , :user_categories , :user_roles , :user_skills
89 ]
910 use CodeCorps.Web , :view
1011 use JaSerializer.PhoenixView
1112
1213 attributes [
13- :biography , :cloudinary_public_id , :email , :first_name , :last_name , :name , :photo_large_url , :photo_thumb_url , :state , :state_transition ,
14+ :biography , :cloudinary_public_id , :email , :first_name , :last_name , :name ,
15+ :photo_large_url , :photo_thumb_url , :state , :state_transition ,
1416 :twitter , :username , :website , :inserted_at , :updated_at
1517 ]
1618
1719 has_one :slugged_route , serializer: CodeCorps.SluggedRouteView
1820 has_one :stripe_platform_card , serializer: CodeCorps.StripePlatformCardView
1921 has_one :stripe_platform_customer , serializer: CodeCorps.StripePlatformCustomerView
2022
23+ has_many :project_users , serializer: CodeCorps.ProjectUserView , identifiers: :always
2124 has_many :stripe_connect_subscriptions , serializer: CodeCorps.StripeConnectSubscriptionView , identifiers: :always
2225 has_many :organization_memberships , serializer: CodeCorps.OrganizationMembershipView , identifiers: :always
2326 has_many :user_categories , serializer: CodeCorps.UserCategoryView , identifiers: :always
0 commit comments