19 lines
323 B
Ruby
Raw Normal View History

2024-10-27 21:42:45 +00:00
# Copyright (C) 2024 Manuel Bustillo
2024-07-11 20:08:26 +02:00
class Guest < ApplicationRecord
acts_as_taggable_on :affinity_groups, :unbreakable_bonds
belongs_to :group
2024-08-11 19:24:24 +02:00
enum status: {
considered: 0,
invited: 10,
confirmed: 20,
2024-10-27 19:25:24 +01:00
declined: 30,
tentative: 40,
2024-08-11 19:24:24 +02:00
}
2024-07-11 20:13:22 +02:00
def full_name
"#{first_name} #{last_name}"
end
2024-07-11 20:08:26 +02:00
end