commit
2140b45cc5
@ -1,4 +1,8 @@
|
||||
class School < ActiveRecord::Base
|
||||
attr_accessible :name, :province
|
||||
has_many :courses
|
||||
|
||||
def to_s
|
||||
self.name.to_s
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in new issue