I'm wondering if there are any gems out there that support both Rails 2 and Rails 3? If so, how do they do it? Simple conditionals in the code?
This is related to my previous question: Packaging Rails 2.3 Models
Our webapp is on Rails 2, but the new API app is going to be Rails 3. There are already some minor incompatibilities between the two that would be easy to fix with a release script, or with runtime conditionals.
[edit] We do plan to eventually have both the API server and App server running on Rails 3, so this would be for the interim. My current thinking is that an if-def solution might be the simplest and easiest. (See: http://www.infoq.com/presentations/Simple-Made-Easy)