From c056b31e13649f0f5a8aaed62198a766de13463d Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 1 Feb 2012 09:52:28 -0500 Subject: [PATCH] Record votedate --- app/controllers/habits_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/habits_controller.rb b/app/controllers/habits_controller.rb index 0378ceb7ee..7160a23748 100644 --- a/app/controllers/habits_controller.rb +++ b/app/controllers/habits_controller.rb @@ -79,6 +79,7 @@ class HabitsController < ApplicationController def vote @habit = current_user.habits.find(params[:id]) @habit.score += params[:vote].to_i + @habit.votedate = Time.now respond_to do |format| if @habit.save