8 lines
153 B
Ruby
8 lines
153 B
Ruby
#
|
|
# A guest or plus one.
|
|
#
|
|
class Attendee < ApplicationRecord
|
|
scope :diet?, -> { where.not(diet: nil) }
|
|
scope :child?, -> { where(child: true) }
|
|
end
|