Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema(3)

NAME
Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema - Clone the schema with attributes for each requests

SYNOPSIS
    __PACKAGE__->config({
        traits => ['PerRequestSchema'],
    });

    method per_request_schema_attributes($c) {
        return (restricting_object => $c->user->obj);
    }

DESCRIPTION
Clones the schema for each new request with the attributes retrieved from your "per_request_schema_attributes" method, which you must implement. This method is passed the context.

SEE ALSO
Catalyst::Model::DBIC::Schema, DBIx::Class::Schema

AUTHOR
See "AUTHOR" in Catalyst::Model::DBIC::Schema and "CONTRIBUTORS" in Catalyst::Model::DBIC::Schema.

COPYRIGHT
See "COPYRIGHT" in Catalyst::Model::DBIC::Schema.

LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.