diff Lib/IMPL/Web/Application/ResourceContract.pm @ 331:2ff1726c066c

removed operation contract (due it's useless)
author cin
date Wed, 05 Jun 2013 18:21:11 +0400
parents fe725fad2d90
children 04a093f0a5a6
line wrap: on
line diff
--- a/Lib/IMPL/Web/Application/ResourceContract.pm	Tue Jun 04 19:25:54 2013 +0400
+++ b/Lib/IMPL/Web/Application/ResourceContract.pm	Wed Jun 05 18:21:11 2013 +0400
@@ -44,7 +44,8 @@
 
 	foreach my $res (@$resources) {
 		if (ref $res->{contract} eq 'HASH') {
-		    $res->{contract} = __PACKAGE__->new(%{$res->{contract}});
+			# custom contract will add OPTIONS verb if needed 
+		    $res->{contract} = CustomContract->new(%{$res->{contract}});
 		}
 		
 		next unless $res->{contract};