Files
wedding/app/models/attendee.rb
John Lees-Miller 6e82ba528b Make open source
2018-10-27 16:46:26 +01:00

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