Replace realm respond_to with checking for enc parameter