d41d50d52b
and some other de-tenant changes, including removing the controller tenanting concerns
14 lines
328 B
Ruby
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
|