[Jifty-commit] jifty branch, jifty_client, updated. 50e791fc2c1e28436019a65b5e8ecb892292d433
Jifty commits
jifty-commit at lists.jifty.org
Mon May 3 04:36:04 EDT 2010
The branch, jifty_client has been updated
via 50e791fc2c1e28436019a65b5e8ecb892292d433 (commit)
from 0803368a20c3b357704c0bfe43222c4598f66a00 (commit)
Summary of changes:
lib/Jifty/Plugin/REST/Dispatcher.pm | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 50e791fc2c1e28436019a65b5e8ecb892292d433
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon May 3 16:35:26 2010 +0800
Coerce typed columns
diff --git a/lib/Jifty/Plugin/REST/Dispatcher.pm b/lib/Jifty/Plugin/REST/Dispatcher.pm
index 5c42175..5c78fef 100644
--- a/lib/Jifty/Plugin/REST/Dispatcher.pm
+++ b/lib/Jifty/Plugin/REST/Dispatcher.pm
@@ -977,12 +977,15 @@ sub show_joose_class {
}
if ($col->name eq 'id') {
+ $props->{coerce} = 1;
$props->{isa} = 'Joose.Type.Int';
}
elsif ($col->is_string) {
+ $props->{coerce} = 1;
$props->{isa} = 'Joose.Type.Str';
}
elsif ($col->is_numeric) {
+ $props->{coerce} = 1;
$props->{isa} = 'Joose.Type.Num';
}
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list