repo.or.cz
/
akelos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixing content type ordering when content_type is not defined.
[akelos.git]
/
test
/
fixtures
/
app
/
models
/
test_person.php
blob
39f7627f7964ea99e93a52e6932f11187faf3928
1
<
?php
2
3
class
TestPerson
extends
ActiveRecord
4
{
5
function
validate
()
6
{
7
$this
->
validatesPresenceOf
(
"first_name"
);
8
}
9
10
function
validateOnCreate
()
11
{
12
$this
->
validatesAcceptanceOf
(
"tos"
);
13
}
14
15
function
validateOnUpdate
()
16
{
17
$this
->
validatesPresenceOf
(
"email"
);
18
}
19
20
}
21
22
?
>