Slide 47
Slide 47 text
class RegistrationForm < ApplicationForm
attribute :user, :conference, :note, :attend_type
validates :attend_type, inclusion: {in: ...}
attr_reader :registration
def call
@registration = user.registration.create!(...)
notify_registration!
if @registration.attend_type.in_person?
SeatAllocationJob.perform_later(@registration)
".PΛͬͯ*'ͷ͍ۙผϨΠϠΛಋೖ͢Δ
".P.PEFMͱ͔".P"UUSJCVUFͱ͔Λ
JODMVEFͨ͠ബ͍εʔύʔΫϥε