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
/
dog.rb
1
2
require 'canine'
3
4
class Dog < Canine
5
attr_accessor :after_find_test, :after_initialize_test
6
set_table_name "bow_wows"
7
8
def after_find
9
@after_find_test = true
10
# puts "After find called on #{name}."
11
end
12
13
def after_initialize
14
@after_initialize_test = true
15
end
16
17
end
18