Sha256: 73e072039a796b9e0c98635e0240289d8ecadf39fa5a2a154a7f356f0db9baf6
Contents?: true
Size: 255 Bytes
Versions: 7
Compression:
Stored size: 255 Bytes
Contents
module DiscoApp class UserSerializer include FastJsonapi::ObjectSerializer attributes :email, :first_name, :id, :last_name attribute :initials do |user| [user.first_name, user.last_name].compact.map(&:first).join end end end
Version data entries
7 entries across 7 versions & 1 rubygems