Manuel Bustillo cb42b86136
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 2m39s
Include confirmation status
2024-08-11 19:24:24 +02:00

16 lines
265 B
Ruby

class Guest < ApplicationRecord
acts_as_taggable_on :affinity_groups, :unbreakable_bonds
belongs_to :group
enum status: {
considered: 0,
invited: 10,
confirmed: 20,
declined: 30
}
def full_name
"#{first_name} #{last_name}"
end
end