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

__PACKAGE__->config({
traits => ['PerRequestSchema'],
});
method per_request_schema_attributes($c) {
return (restricting_object => $c->user->obj);
}

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.

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

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

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

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