mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Move tenant settings on separate model (#196)
This commit is contained in:
committed by
GitHub
parent
6c03a0d750
commit
d4242dd78e
@@ -70,6 +70,12 @@ class TenantsController < ApplicationController
|
||||
def tenant_update_params
|
||||
params
|
||||
.require(:tenant)
|
||||
.permit(policy(@tenant).permitted_attributes_for_update)
|
||||
.permit(
|
||||
policy(@tenant)
|
||||
.permitted_attributes_for_update
|
||||
.concat([{
|
||||
tenant_setting_attributes: policy(@tenant.tenant_setting).permitted_attributes_for_update
|
||||
}]) # in order to permit nested attributes for tenant_setting
|
||||
)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user