app/serializers/api/v1/membership_serializer.rb in bullet_train-serializers-1.0.1 vs app/serializers/api/v1/membership_serializer.rb in bullet_train-serializers-1.0.2

- old
+ new

@@ -1,21 +1,8 @@ class Api::V1::MembershipSerializer < Api::V1::ApplicationSerializer - set_type "membership" + include Api::V1::Memberships::SerializerBase + # The `:id` entries are redundant, but for the moment they help us generate valid code. attributes :id, - :team_id, - :user_id, - :invitation_id, - :user_first_name, - :user_last_name, - :user_profile_photo_id, - :user_email, - :added_by_id, # 🚅 super scaffolding will insert new fields above this line. - :created_at, - :updated_at - - belongs_to :user, serializer: Api::V1::UserSerializer - belongs_to :team, serializer: Api::V1::TeamSerializer - belongs_to :invitation, serializer: Api::V1::InvitationSerializer - belongs_to :added_by, serializer: Api::V1::MembershipSerializer + :id end