From: Alexander Hartmaier Date: Tue, 15 May 2012 10:45:57 +0000 (+0200) Subject: Work around Moose bug RT#7536 which breaks Catalyst::Controller::DBIC::API X-Git-Tag: 5.90012~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=26fc3c5f8ce69c0acb32ba02615242c4161b2fa7 Work around Moose bug RT#7536 which breaks Catalyst::Controller::DBIC::API --- diff --git a/Changes b/Changes index ecfb766..0362ace 100644 --- a/Changes +++ b/Changes @@ -17,6 +17,9 @@ for backward compatibility. This fixes issues with behaviour changes in bleadperl. RT#76437 + - Work around Moose bug RT#7536 which breaks + Catalyst::Controller::DBIC::API. + Documentation: - Fix documentation in Catalyst::Component to show attributes and calling readers, rather than accessing elements in the $self->{} hash diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index d0df0f0..6610358 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -23,13 +23,15 @@ has user => (is => 'rw'); sub snippets { shift->captures(@_) } has _read_position => ( - init_arg => undef, + # FIXME: work around Moose bug RT#75367 + # init_arg => undef, is => 'ro', writer => '_set_read_position', default => 0, ); has _read_length => ( - init_arg => undef, + # FIXME: work around Moose bug RT#75367 + # init_arg => undef, is => 'ro', default => sub { my $self = shift;