foodsoft/app/serializers/order_serializer.rb
2021-02-17 17:07:39 +01:00

11 lines
216 B
Ruby

class OrderSerializer < ActiveModel::Serializer
attributes :id, :name, :starts, :ends, :boxfill, :pickup, :is_open, :is_boxfill
def is_open
object.open?
end
def is_boxfill
object.boxfill?
end
end