From c2c930cf82738db38d4cb3b756371b8cb14d0797 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 30 Nov 2023 14:09:41 -0500 Subject: Fix session initialisation --- app/controllers/puzzles_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers') 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 def prepare_session session[:puzzles] ||= { - normal: { "id" => 0 }, - hard: { "id" => 0 }, - expert: { "id" => 0 }, + "normal" => { "id" => 0 }, + "hard" => { "id" => 0 }, + "expert" => { "id" => 0 }, } end -- cgit 1.4.1