Files
fizzy/app/controllers/account/entropies_controller.rb
T
Mike Dalessio d41d50d52b Account.sole → Current.account
and some other de-tenant changes, including removing the controller
tenanting concerns
2025-11-17 09:11:40 -05:00

14 lines
328 B
Ruby

class Account::EntropiesController < ApplicationController
before_action :ensure_admin
def update
Current.account.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