Skip to content

Commit 4edcaa4

Browse files
committed
Store selected color scheme in cookies
1 parent 3017cea commit 4edcaa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/controllers/preferences_controller.rb

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def update
2121
else
2222
params[:user][:preferred_editor]
2323
end
24+
25+
cookies["_osm_color_scheme"] = params[:color_scheme]
26+
2427
if current_user.save
2528
# Use a partial so that it is rendered during the next page load in the correct language.
2629
flash[:notice] = { :partial => "preferences/update_success_flash" }

0 commit comments

Comments
 (0)