![]() |
![]()
| ![]() |
![]()
NAMEJifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata - ActorMetadata mixin SYNOPSISpackage MyApp::Model::CoffeeShop; use Jifty::DBI::Schema; use MyApp::Record schema { # custom column definitions }; use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on and updated_by DESCRIPTIONSCHEMAThis mixin adds the following columns to the model schema: created_bycreated_onupdated_onupdated_byMETHODS# XXX: pod coverage should count parent classes. this pod is useless register_triggersAdds the triggers to the model this mixin is added to. register_triggers_for_columnbefore_createSets "created_by", "created_on", "updated_on" and "updated_by" based on the current user and time. after_setupdate "updated_on" and "updated_by" based on the current user and current time. current_user_canRejects creation unless there's a current_user. current_user_is_ownerimportto be more flexible, we allow some configurations like: e.g. use
Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata
current valid args are: user_class => 'Foo::Model::User'
|