Sha256: 3acb82d4b035848e1a0598f08a9cc328834482eaabbc6b7bcb3caec4c6c78869
Contents?: true
Size: 391 Bytes
Versions: 10
Compression:
Stored size: 391 Bytes
Contents
class ProfileSerializer < ActiveModel::Serializer include NullAttributeReplacer attributes :id, :name, :gender, :date_of_birth, :username, :email, :phone, :dummy 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
10 entries across 10 versions & 1 rubygems