Skip to content
Snippets Groups Projects
Commit c16d9d24 authored by Rysev, Gleb (UG - SISC)'s avatar Rysev, Gleb (UG - SISC)
Browse files

Merge branch '28-controller-tests' into Development

parent 81281522
No related branches found
No related tags found
No related merge requests found
Pipeline #31047 failed
...@@ -76,15 +76,12 @@ class HabitsController < ApplicationController ...@@ -76,15 +76,12 @@ class HabitsController < ApplicationController
format.html { redirect_to :root, notice: 'You have already done that today. Come back tomorrow!' } format.html { redirect_to :root, notice: 'You have already done that today. Come back tomorrow!' }
end end
end end
<<<<<<< HEAD
if @habit.max_streak.nil? if @habit.max_streak.nil?
@habit.max_streak = @habit.streak @habit.max_streak = @habit.streak
@habit.save @habit.save
elsif @habit.streak > @habit.max_streak elsif @habit.streak > @habit.max_streak
=======
if @habit.max_streak.nil? || @habit.streak > @habit.max_streak
>>>>>>> 28-controller-tests
@habit.max_streak = @habit.streak @habit.max_streak = @habit.streak
@habit.save @habit.save
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment