Rails processes JSON automatically when headers are present