[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 53f9f22f309d8e75d5547d3941e4a853a8079491
Shawn Moore
sartak at bestpractical.com
Wed Feb 9 17:11:35 EST 2011
The branch, master has been updated
via 53f9f22f309d8e75d5547d3941e4a853a8079491 (commit)
via 862cc22a7566eb65ba5a41d3dd44e9aa85ae406e (commit)
from d6779023cbdbc54fa043e84d1f2408f225559e33 (commit)
Summary of changes:
lib/Jifty/Plugin/RecordHistory/Model/Change.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 862cc22a7566eb65ba5a41d3dd44e9aa85ae406e
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Feb 9 17:08:37 2011 -0500
No need to call ->user_obj to get current_user's ID
diff --git a/lib/Jifty/Plugin/RecordHistory/Model/Change.pm b/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
index f0f7634..2055118 100644
--- a/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
+++ b/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
@@ -38,7 +38,7 @@ use Jifty::Record schema {
sub create {
my $self = shift;
my %args = (
- created_by => $self->current_user->user_object->id,
+ created_by => $self->current_user->id,
@_,
modified_at => DateTime->now->iso8601,
);
commit 53f9f22f309d8e75d5547d3941e4a853a8079491
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Feb 9 17:11:27 2011 -0500
created_on is the column name not modified_at
diff --git a/lib/Jifty/Plugin/RecordHistory/Model/Change.pm b/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
index 2055118..4d5ec86 100644
--- a/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
+++ b/lib/Jifty/Plugin/RecordHistory/Model/Change.pm
@@ -40,7 +40,7 @@ sub create {
my %args = (
created_by => $self->current_user->id,
@_,
- modified_at => DateTime->now->iso8601,
+ created_on => DateTime->now->iso8601,
);
return $self->SUPER::create(%args);
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list