diff --git a/app/models/customer_appointment.rb b/app/models/customer_appointment.rb index d4c9372..ca69492 100644 --- a/app/models/customer_appointment.rb +++ b/app/models/customer_appointment.rb @@ -19,6 +19,8 @@ class CustomerAppointment < ActiveRecord::Base validates :subject, presence: true validates :date, presence: true + normalizes :subject, with: ->(subject) { subject.strip.titleize } + STATUSES = %w[ Scheduled CheckedIn