Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata - ActorMetadata mixin
package MyApp::Model::CoffeeShop; use Jifty::DBI::Schema; use MyApp::Record schema { # custom column defrinitions }; use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on
This mixin adds the following columns to the model schema:
# XXX: podcoverage should count parent classes. these pods are useless
Adds the triggers to the model this mixin is added to.
Sets created_by, created_on, updated_on based on the current user and time.
created_by
created_on
updated_on
Rejects creation unless there's a current_user. Rejects update or deletion unless the current_user is the creator. (Jesse says: this feels like wrong logic for this mixin)
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.