Files
fizzy/app/controllers/account/entropies_controller.rb
T
2025-11-12 11:33:46 +01:00

14 lines
325 B
Ruby

class Account::EntropiesController < ApplicationController
before_action :ensure_admin
def update
Account.sole.entropy.update!(entropy_params)
redirect_to account_settings_path, notice: "Account updated"
end
private
def entropy_params
params.expect(entropy: [ :auto_postpone_period ])
end
end