projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Done testing
[depot.git]
/
vendor
/
rails
/
activerecord
/
test
/
models
/
pirate.rb
1
class
Pirate
<
ActiveRecord
::Base
2
belongs_to
:parrot
3
has_and_belongs_to_many
:parrots
4
has_many
:treasures
,
:as
=>
:looter
5
6
has_many
:treasure_estimates
,
:through
=>
:treasures
,
:source
=>
:price_estimates
7
8
validates_presence_of
:catchphrase
9
end