[Jifty-commit] r3120 - jifty/trunk/lib/Jifty/Plugin/REST
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Apr 12 06:55:03 EDT 2007
Author: audreyt
Date: Thu Apr 12 06:54:33 2007
New Revision: 3120
Modified:
jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
Log:
* Jifty::Plugin::REST::Dispatcher - Gugod pointed out that we don't need to
stringify() the object-to-data output, because (esp for nested structures)
it's far more convenient to have the $accept-specific formatter (e.g.
YAML or JSON) to render it.
Modified: jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm Thu Apr 12 06:54:33 2007
@@ -123,8 +123,9 @@
}
}
- # Attempt to stringify as last resort
- return stringify( $obj );
+ # As the last resort, return the object itself and expect the $accept-specific
+ # renderer to format the object as e.g. YAML or JSON data.
+ return $obj;
}
sub _collection_to_data {
More information about the Jifty-commit
mailing list