Record votedate

This commit is contained in:
Tyler Renelle 2012-02-01 09:52:28 -05:00
parent aa80f24ba1
commit c056b31e13

View file

@ -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