added check for permitted_params method for inherited_resources