socialforge/app/models/school.rb

10 lines
138 B
Ruby
Raw Normal View History

class School < ActiveRecord::Base
2015-10-15 12:04:55 +08:00
attr_accessible :name, :province,:pinyin
has_many :courses
def to_s
self.name.to_s
end
2016-05-10 11:33:02 +08:00
end