Jifty::DBI::Filter::Truncate3pm
Filter used to enforce max_length column trait
Overview
You do not need to use this filter explicitly. This filter is used internally to enforce the "max_length" in Jifty::DBI::Schema restrictions on columns:
column name =>type is 'text',max_length is 10;
In this case, the filter would be automatically added to the column named "name" and any value put into the column longer than 10 characters would be truncated to 10 characters.
Methods
encode
This method performs the work of performing truncation, when necessary.
Releases
9 releases since Debian 5.0 (Lenny); the text changed 5 times.