Files
fizzy/app/controllers/my/timezones_controller.rb
T
Jorge Manrubia cfa0149564 Persist timezones in the server
Add a beacon to persist timezones when these change (or the first time)
2025-09-05 12:11:57 +02:00

11 lines
213 B
Ruby

class My::TimezonesController < ApplicationController
def update
Current.user.settings.update!(timezone_name: timezone_param)
end
private
def timezone_param
params[:timezone_name]
end
end