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
/
extended_post.php
blob
4b91399be5c8763e91076812a24fcd93bc135e2b
1
<
?php
2
3
class
ExtendedPost
extends
ActiveRecord
4
{
5
var
$has_many
=
'extended_comments'
;
6
7
function
validate
()
8
{
9
if
(
$this
->
comments_count
<
0
){
10
$this
->
addError
(
'comments_count'
,
'can
\'
t be negative'
);
11
}
12
}
13
}
14
15
?
>