jam-cloud/ruby/lib/jam_ruby/models/teacher_experience.rb

12 lines
395 B
Ruby

module JamRuby
class TeacherExperience < ActiveRecord::Base
include HtmlSanitize
html_sanitize strict: [:name, :organization]
belongs_to :teacher, :class_name => "JamRuby::Teacher"
scope :teaching, -> { where(experience_type: 'teaching')}
scope :education, -> { where(experience_type: 'education') }
scope :awards, -> { where(experience_type: 'award') }
end
end