projects
/
cs356-p2-videostore.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add the has_many_polymorphs plugin
[cs356-p2-videostore.git]
/
vendor
/
plugins
/
has_many_polymorphs
/
test
/
models
/
aquatic
/
pupils_whale.rb
1
2
class Aquatic::PupilsWhale < ActiveRecord::Base
3
set_table_name "little_whale_pupils"
4
belongs_to :whale, :class_name => "Aquatic::Whale", :foreign_key => "whale_id"
5
belongs_to :aquatic_pupil, :polymorphic => true
6
end
7