app/controllers/api/v1/application_controller_customized.rb
# Only allow a trusted parameter "white list" through.
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .
def model_params
        snakalize_keys params.require(model_symbol)
                             .permit(*@permitted_params)
                             .to_h
      end
def model_params snakalize_keys params . require ( model_symbol ) . permit ( * @permitted_params ) . to_h end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .