dawarich/app/controllers/settings_controller.rb

12 lines
235 B
Ruby
Raw Normal View History

2024-05-18 06:13:29 -04:00
# frozen_string_literal: true
class SettingsController < ApplicationController
before_action :authenticate_user!
def theme
current_user.update(theme: params[:theme])
redirect_back(fallback_location: root_path)
end
end