instructor.rb 160 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
class Instructor < ApplicationRecord
2
3
  has_many :course_sections

4
5
  def self.named(base_query, name)
    base_query.where("name LIKE ?", "%#{name}%")
6
  end
Zac Wood's avatar
Zac Wood committed
7
end