Version 1.02
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / TraitFor / Request / REST / ForBrowsers.pm
index ef98c19..e44c0b8 100644 (file)
@@ -4,6 +4,9 @@ use namespace::autoclean;
 
 with 'Catalyst::TraitFor::Request::REST';
 
+our $VERSION = '1.02';
+$VERSION = eval $VERSION;
+
 has _determined_real_method => (
     is  => 'rw',
     isa => 'Bool',
@@ -91,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
 
@@ -165,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 *