Sha256: c32450f66bee78e512e6311817429fce31149048e71ede8d54616ea1eb9cb82e
Contents?: true
Size: 492 Bytes
Versions: 5
Compression:
Stored size: 492 Bytes
Contents
class ContactSerializer < ActiveModel::Serializer include NullAttributeReplacer attributes :id, :name, :account_type, :email, :address, :contact_number_1, :contact_number_2, :contact_number_3, :contact_number_4 has_one :profile_picture, class_name: "Image::ProfilePicture", serializer: ProfilePictureSerializer do if object.done_deal_user && object.done_deal_user.profile_picture object.done_deal_user.profile_picture else Image::ProfilePicture.new end end end
Version data entries
5 entries across 5 versions & 1 rubygems