Files
fizzy/app/controllers/account/entropy_configurations_controller.rb
T
Mike Dalessio 87d81e608b refactor: remove unused routes associated with "resource :account"
- Drop from 313 unused routes to 306 unused routes
- Use a namespace for the account-related resource routes
- Controllers are nested under the "Account" module now
- Move views from "accounts/" to "account/"
2025-08-28 11:12:24 -04:00

13 lines
381 B
Ruby

class Account::EntropyConfigurationsController < ApplicationController
def update
Entropy::Configuration.default.update!(entropy_configuration_params)
redirect_to account_settings_path, notice: "Account updated"
end
private
def entropy_configuration_params
params.expect(entropy_configuration: [ :auto_close_period, :auto_reconsider_period ])
end
end