Fix string literal when switching theme in dev env

This commit is contained in:
Penar Musaraj 2019-05-13 10:25:11 -04:00
parent f1b0782624
commit 607c671003
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class ThemesController < ::ApplicationController
next hash unless Rails.env.development?
dup_hash = hash.dup
dup_hash[:new_href] = dup_hash[:new_href].dup
dup_hash[:new_href] << (dup_hash[:new_href].include?("?") ? "&" : "?")
dup_hash[:new_href] << SecureRandom.hex
dup_hash