12 Added notes and colours to customers
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
class ReservationSerializer < ActiveModel::Serializer
|
||||
attributes :id, :start_time, :end_time
|
||||
attributes :id, :start_time, :end_time, :customer_color_emoji
|
||||
|
||||
belongs_to :customer
|
||||
belongs_to :team, serializer: TeamSerializer
|
||||
end
|
||||
|
||||
def customer_color_emoji
|
||||
object.customer&.color_emoji || ''
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user