[Bps-public-commit] App-Changeloggr branch, master, updated. 7c66272eef4d39dfda40c0b618022b09f9ab705a

sartak at bestpractical.com sartak at bestpractical.com
Mon Mar 30 15:36:29 EDT 2009


The branch, master has been updated
       via  7c66272eef4d39dfda40c0b618022b09f9ab705a (commit)
      from  1d128fb3a9d636dc36dec563d095592030a87262 (commit)

Summary of changes:
 lib/App/Changeloggr/Model/Vote.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 7c66272eef4d39dfda40c0b618022b09f9ab705a
Author: Shawn M Moore <sartak at gmail.com>
Date:   Mon Mar 30 15:36:07 2009 -0400

    Add a default user_session_id

diff --git a/lib/App/Changeloggr/Model/Vote.pm b/lib/App/Changeloggr/Model/Vote.pm
index 5ddd105..fb5906a 100644
--- a/lib/App/Changeloggr/Model/Vote.pm
+++ b/lib/App/Changeloggr/Model/Vote.pm
@@ -3,6 +3,7 @@ use warnings;
 
 package App::Changeloggr::Model::Vote;
 use Jifty::DBI::Schema;
+use Scalar::Defer 'defer';
 
 use App::Changeloggr::Record schema {
     column change =>
@@ -11,6 +12,7 @@ use App::Changeloggr::Record schema {
 
     column user_session_id =>
         type is 'text',
+        default is defer { Jifty->web->session->id },
         is private;
 
     column tag =>

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



More information about the Bps-public-commit mailing list