Sha256: 12e0a207394144e3465e3c3513ce6c06c6e99b70bc0bd9eef956d9033ed11b4a
Contents?: true
Size: 414 Bytes
Versions: 13
Compression:
Stored size: 414 Bytes
Contents
class ProfileSerializer < ActiveModel::Serializer include NullAttributeReplacer attributes :id, :name, :gender, :date_of_birth, :username, :email, :phone, :dummy, :country_id, :city_id has_one :profile_picture, class_name: "Image::ProfilePicture", serializer: ProfilePictureSerializer do if object.profile_picture object.profile_picture else object.build_profile_picture end end end
Version data entries
13 entries across 13 versions & 1 rubygems