[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 41ef7fa023e6718ba51e8356a2f801c34cbed07d
Shawn Moore
sartak at bestpractical.com
Tue Feb 8 03:07:37 EST 2011
The branch, master has been updated
via 41ef7fa023e6718ba51e8356a2f801c34cbed07d (commit)
from 7e954f1595319a69d7c91e8492d7c7ceda6ec9b6 (commit)
Summary of changes:
.../RecordHistory/Mixin/Model/RecordHistory.pm | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
create mode 100644 lib/Jifty/Plugin/RecordHistory/Mixin/Model/RecordHistory.pm
- Log -----------------------------------------------------------------
commit 41ef7fa023e6718ba51e8356a2f801c34cbed07d
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Feb 8 03:07:26 2011 -0500
Begin adding a mixin for actually creating transaction entries
diff --git a/lib/Jifty/Plugin/RecordHistory/Mixin/Model/RecordHistory.pm b/lib/Jifty/Plugin/RecordHistory/Mixin/Model/RecordHistory.pm
new file mode 100644
index 0000000..83f3e14
--- /dev/null
+++ b/lib/Jifty/Plugin/RecordHistory/Mixin/Model/RecordHistory.pm
@@ -0,0 +1,20 @@
+package Jifty::Plugin::RecordHistory::Mixin::Model::RecordHistory;
+use strict;
+use warnings;
+
+sub import {
+ my $class = shift;
+ my $caller = caller;
+
+ $caller->add_trigger(after_set => sub {
+ my $record = shift;
+ my %args = (
+ column => undef,
+ value => undef,
+ @_,
+ );
+
+ # add to the current transaction
+ });
+}
+
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list