app/models/referral.rb
# some method that check for valid start and end time
some method that check for valid start and end time
some method that check for valid start and end time
def valid_start_time
    return true if start_time.nil?
    return true if start_time.valid?
    errors.add(:start_time, :invalid_format)
    false
  end
def valid_start_time return true if start_time . nil? return true if start_time . valid? errors . add ( :start_time , :invalid_format ) false end
some method that check for valid start and end time
some method that check for valid start and end time