X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FTraitFor%2FModel%2FDBIC%2FSchema%2FPerRequestSchema.pm;h=df254b3aaeb0f9069f50a9b1e5a5feafee3fcdcc;hb=0488aabe2ad8552c9dacc0937cfb03e87fdaf2a0;hp=dcbd61fc6d43c17fce88f1c12634841a79ffa1b5;hpb=79ac28c61569bbed2746065cc7c933f1d20a11a4;p=catagits%2FCatalyst-Model-DBIC-Schema.git diff --git a/lib/Catalyst/TraitFor/Model/DBIC/Schema/PerRequestSchema.pm b/lib/Catalyst/TraitFor/Model/DBIC/Schema/PerRequestSchema.pm index dcbd61f..df254b3 100644 --- a/lib/Catalyst/TraitFor/Model/DBIC/Schema/PerRequestSchema.pm +++ b/lib/Catalyst/TraitFor/Model/DBIC/Schema/PerRequestSchema.pm @@ -1,13 +1,8 @@ package Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema; -use Moose; +use Moose::Role; use namespace::autoclean; -sub BUILD {} -after BUILD => sub { - my ($self) = @_; - confess("You have not implemented a per_request_schema_attributes method in " . ref($self)) - unless $self->can('per_request_schema_attributes'); -}; +requires 'per_request_schema_attributes'; with 'Catalyst::Component::InstancePerContext';