Setting Max Length on Model Properties

9 views
Skip to first unread message

Willy Joseph

unread,
Apr 22, 2013, 1:33:53 PM4/22/13
to ged...@googlegroups.com
Hello:

How can I set a max length for a property of type string of a model?

Thanks.

Matthew Eernisse

unread,
Apr 22, 2013, 1:38:20 PM4/22/13
to ged...@googlegroups.com
Like this:

this
.validatesLength('foo', {max: 24});



--
The official community discussion group.
website: geddyjs.org, source: https://github.com/mde/geddy, group: https://groups.google.com/d/forum/geddyjs?hl=en
---
You received this message because you are subscribed to the Google Groups "GeddyJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geddyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Willy Joseph

unread,
Apr 22, 2013, 2:06:05 PM4/22/13
to ged...@googlegroups.com
Not what I am looking for. I worded my question wrong. The datatype string has a default length of 256. This is too small. I went with datatype text. That seems to do the job.

Thanks.
Reply all
Reply to author
Forward
0 new messages