[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 16c641775eb4d1fe7b79e990557707015e902003

Shawn Moore sartak at bestpractical.com
Wed Feb 2 20:14:54 EST 2011


The branch, master has been updated
       via  16c641775eb4d1fe7b79e990557707015e902003 (commit)
      from  d8d9443a8fe9255dd266216dc46e37716c960f48 (commit)

Summary of changes:
 .../Plugin/RecordHistory/Model/Transaction.pm      |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 lib/Jifty/Plugin/RecordHistory/Model/Transaction.pm

- Log -----------------------------------------------------------------
commit 16c641775eb4d1fe7b79e990557707015e902003
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Feb 2 20:14:45 2011 -0500

    Begin adding a Transaction model

diff --git a/lib/Jifty/Plugin/RecordHistory/Model/Transaction.pm b/lib/Jifty/Plugin/RecordHistory/Model/Transaction.pm
new file mode 100644
index 0000000..9f71ae6
--- /dev/null
+++ b/lib/Jifty/Plugin/RecordHistory/Model/Transaction.pm
@@ -0,0 +1,20 @@
+package Jifty::Plugin::RecordHistory::Model::Transaction;
+use warnings;
+use strict;
+
+use Jifty::DBI::Schema;
+use Jifty::Record schema {
+    column record_id =>
+        type is 'integer',
+        is mandatory;
+};
+
+sub record {
+    my $self = shift;
+    my $record = $self->record_class;
+    $record->load($self->record_id);
+    return $record;
+}
+
+1;
+

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list