diff --git a/app/controllers/administrate/application_controller.rb b/app/controllers/administrate/application_controller.rb index 4d882f73c8..f163dca99c 100644 --- a/app/controllers/administrate/application_controller.rb +++ b/app/controllers/administrate/application_controller.rb @@ -100,11 +100,7 @@ def find_resource(param) end def resource_params - params.require(resource_name).permit(*permitted_attributes) - end - - def permitted_attributes - dashboard.permitted_attributes + params.require(resource_name).permit(dashboard.permitted_attributes) end def sanitized_params