Files
fizzy/app/controllers/notifications/settings_controller.rb
T
2025-11-05 13:31:54 +01:00

22 lines
469 B
Ruby

class Notifications::SettingsController < ApplicationController
before_action :set_settings
def show
@boards = Current.user.boards.alphabetically
end
def update
@settings.update!(settings_params)
redirect_to notifications_settings_path, notice: "Settings updated"
end
private
def set_settings
@settings = Current.user.settings
end
def settings_params
params.expect(user_settings: :bundle_email_frequency)
end
end