about summary refs log tree commit diff stats
path: root/app/controllers
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 14:09:41 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 14:09:41 -0500
commitc2c930cf82738db38d4cb3b756371b8cb14d0797 (patch)
tree9324550f6db0a64c4453f32df80ea226e4e0b259 /app/controllers
parentd0f293de6133751251644fcc1abd59bd7ab1a85c (diff)
downloadwittle-c2c930cf82738db38d4cb3b756371b8cb14d0797.tar.gz
wittle-c2c930cf82738db38d4cb3b756371b8cb14d0797.tar.bz2
wittle-c2c930cf82738db38d4cb3b756371b8cb14d0797.zip
Fix session initialisation
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/puzzles_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/puzzles_controller.rb b/app/controllers/puzzles_controller.rb index b996022..dfb70e4 100644 --- a/app/controllers/puzzles_controller.rb +++ b/app/controllers/puzzles_controller.rb
@@ -100,9 +100,9 @@ class PuzzlesController < ApplicationController
100 100
101 def prepare_session 101 def prepare_session
102 session[:puzzles] ||= { 102 session[:puzzles] ||= {
103 normal: { "id" => 0 }, 103 "normal" => { "id" => 0 },
104 hard: { "id" => 0 }, 104 "hard" => { "id" => 0 },
105 expert: { "id" => 0 }, 105 "expert" => { "id" => 0 },
106 } 106 }
107 end 107 end
108 108