diff --git a/app/controllers/administrate/application_controller.rb b/app/controllers/administrate/application_controller.rb index a496574f40..7cfda9edf0 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 delegate :resource_class, :resource_name, :namespace, to: :resource_resolver