[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 269197092cfdf491e3503687c9a92aecf5ffb9ba

Shawn Moore sartak at bestpractical.com
Wed Feb 9 17:37:18 EST 2011


The branch, master has been updated
       via  269197092cfdf491e3503687c9a92aecf5ffb9ba (commit)
      from  d3539cc61c05c18c0a01eae9951538a036f83d9c (commit)

Summary of changes:
 lib/Jifty/Plugin/RecordHistory/Model/Change.pm |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 269197092cfdf491e3503687c9a92aecf5ffb9ba
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Feb 9 17:37:12 2011 -0500

    Change->add_change_field

diff --git a/lib/Jifty/Plugin/RecordHistory/Model/Change.pm b/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
index f5ce81a..cf0071a 100644
--- a/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
+++ b/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
@@ -62,5 +62,16 @@ sub delegate_current_user_can {
     return $self->record->current_user_can($right);
 }
 
+sub add_change_field {
+    my $self = shift;
+    my %args = @_;
+
+    my $change_field = Jifty::Plugin::RecordHistory::Model::ChangeField->new;
+    $change_field->create(
+        %args,
+        change => $self,
+    );
+}
+
 1;
 

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



More information about the Bps-public-commit mailing list