Do you mean a random gem working within a Rails app? That's a bit different, Rails conventions have changed significantly. A random gem might be an old gem that used old conventions, doesn't mean it wasn't quality at the time.
I've found namespacing to be the solution and it doesn't really cause me too much friction when coding either.