Define and seed an invitation model and controller #224

Merged
bustikiller merged 12 commits from invitations into main 2025-06-01 18:36:50 +00:00
Showing only changes of commit 0a2cf6a5eb - Show all commits

View File

@ -9,7 +9,7 @@ class GuestsController < ApplicationController
render json: Guest.includes(:group) render json: Guest.includes(:group)
.left_joins(:group) .left_joins(:group)
.order('groups.name' => :asc, name: :asc) .order('groups.name' => :asc, name: :asc)
.as_json(only: %i[id name status invitation_id], include: { group: { only: %i[id name] } }) .as_json(only: %i[id name status], include: { group: { only: %i[id name] } })
end end
def create def create