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

sartak at bestpractical.com sartak at bestpractical.com
Mon Mar 30 15:39:28 EDT 2009


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

Summary of changes:
 lib/App/Changeloggr/Action/CreateVote.pm |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 lib/App/Changeloggr/Action/CreateVote.pm

- Log -----------------------------------------------------------------
commit d28c5ceb0c9404eda453f644c840b27b263101dc
Author: Shawn M Moore <sartak at gmail.com>
Date:   Mon Mar 30 15:39:19 2009 -0400

    Add a CreateVote action with a better success message

diff --git a/lib/App/Changeloggr/Action/CreateVote.pm b/lib/App/Changeloggr/Action/CreateVote.pm
new file mode 100644
index 0000000..12cbd69
--- /dev/null
+++ b/lib/App/Changeloggr/Action/CreateVote.pm
@@ -0,0 +1,11 @@
+package App::Changeloggr::Action::CreateVote;
+use strict;
+use warnings;
+use base 'Jifty::Action::Record::Create';
+
+sub record_class { 'App::Changeloggr::Model::Vote' }
+
+sub report_success { shift->result->message(_("Thanks for voting!")) }
+
+1;
+

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



More information about the Bps-public-commit mailing list