2014-03-20 16:19:16 +08:00
|
|
|
class School < ActiveRecord::Base
|
2015-10-15 12:04:55 +08:00
|
|
|
attr_accessible :name, :province,:pinyin
|
2014-03-20 16:19:16 +08:00
|
|
|
has_many :courses
|
2014-05-12 08:10:08 +08:00
|
|
|
|
|
|
|
def to_s
|
|
|
|
self.name.to_s
|
|
|
|
end
|
2014-03-20 16:19:16 +08:00
|
|
|
end
|