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