[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 941daee1c3aa6c87168aff7fddd836a97531d95a
Shawn Moore
sartak at bestpractical.com
Wed Feb 2 20:25:02 EST 2011
The branch, master has been updated
via 941daee1c3aa6c87168aff7fddd836a97531d95a (commit)
from 8073b38bb7fe3a4d80d8bca02c4a7092d485f6d9 (commit)
Summary of changes:
.../Plugin/RecordHistory/Model/TransactionEntry.pm | 24 ++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
create mode 100644 lib/Jifty/Plugin/RecordHistory/Model/TransactionEntry.pm
- Log -----------------------------------------------------------------
commit 941daee1c3aa6c87168aff7fddd836a97531d95a
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Feb 2 20:24:42 2011 -0500
Begin adding a TransactionEntry model
diff --git a/lib/Jifty/Plugin/RecordHistory/Model/TransactionEntry.pm b/lib/Jifty/Plugin/RecordHistory/Model/TransactionEntry.pm
new file mode 100644
index 0000000..525bfcf
--- /dev/null
+++ b/lib/Jifty/Plugin/RecordHistory/Model/TransactionEntry.pm
@@ -0,0 +1,24 @@
+package Jifty::Plugin::RecordHistory::Model::TransactionEntry;
+use warnings;
+use strict;
+
+use Jifty::DBI::Schema;
+use Jifty::Record schema {
+ column transaction =>
+ refers to Jifty::Plugin::RecordHistory::Model::Transaction,
+ is immutable;
+};
+
+sub record {
+ my $self = shift;
+ return $self->transaction->record;
+}
+
+sub delegate_current_user_can {
+ my $self = shift;
+ $self->transaction->delegate_current_user_can(@_);
+}
+
+1;
+
+
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list