Sprankelprachtig aan/afmeldsysteem

show.rabl 424B

123456789101112131415161718192021222324
  1. object @activity
  2. attributes :id, :name, :start, :end, :deadline, :location, :reminder_at
  3. node :response_counts do
  4. c = @activity.state_counts
  5. {
  6. "present": c[true] || "0",
  7. "unknown": c[nil] || "0",
  8. "absent": c[false] || "0"
  9. }
  10. end
  11. child :participants do
  12. child :person do
  13. attribute :id, :full_name
  14. end
  15. attribute :attending, :notes, :is_organizer
  16. end
  17. child :group do
  18. attribute :id, :name
  19. end