class SessionOmittedReason

Schema Information

Table name: session_omitted_reasons

id                :integer          not null, primary key
tutoring_session_id :integer
reason            :integer
other_reason      :string(255)
created_at        :datetime
updated_at        :datetime
university_id        :integer

Constants

REASONS

Constant to specify reason for ommitting session

Public Instance Methods

reason_text() click to toggle source

To get reason for ommiting the session

# File app/models/session_omitted_reason.rb, line 25
def reason_text
  reason == 3 ? other_reason : REASONS[reason]
end