Version 1.02
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / TraitFor / Request / REST / ForBrowsers.pm
index c2e4d95..e44c0b8 100644 (file)
@@ -4,7 +4,7 @@ use namespace::autoclean;
 
 with 'Catalyst::TraitFor::Request::REST';
 
-our $VERSION = '0.83';
+our $VERSION = '1.02';
 $VERSION = eval $VERSION;
 
 has _determined_real_method => (
@@ -94,10 +94,17 @@ Catalyst::TraitFor::Request::REST::ForBrowsers - A request trait for REST and br
 =head1 SYNOPSIS
 
     package MyApp;
+    use Moose;
+    use namespace::autoclean;
 
-    use Catalyst::TraitFor::Request::REST::ForBrowsers;
+    use Catalyst;
+    use CatalystX::RoleApplicator;
 
+    extends 'Catalyst';
 
+    __PACKAGE__->apply_request_class_roles(qw[
+        Catalyst::TraitFor::Request::REST::ForBrowsers
+    ]);
 
 =head1 DESCRIPTION
 
@@ -168,7 +175,8 @@ If the client provides an Accept header and accepts either "text/html" or
 
 =item *
 
-If it provides an Accept header of any sort, it is I<not> a browser.
+If it provides an Accept header of any sort that doesn't match one of the
+above criteria, it is I<not> a browser.
 
 =item *