Fix remove Rails API support (fixup)

I forgot half the fix.
Temporary revert "Fix remove Rails API support (fixup)"

This reverts commit 981f9fc2a1ada2b4ebf1a46b0bff6c92534142e0.

This commit exists for the same reason the previous does:
  see Temporary revert "Fix remove Rails API support"