News for hackers. Stuff that matters.
Re:Upgrading GitHub to Rails 3 with Zero Downtime by holman on Monday September 15, 2014 @10:32PM (#8322742)
Lots of conditionals, yeah. This isn't really a bad thing, to be honest; it's far better than maintaining two separate branches. We already use similar conditionals when dealing with feature flags, so it's not really something that feels out of the ordinary in our app at all.

What's more, we found that if there was a file that had a ton of complicated, interwoven logic between the two versions of Rails, it was a clear sign we should see if we could instead backport a Rails 3 or 4 component so that we could nix the entire Rails 2.x-style functionality.

Re:Upgrading GitHub to Rails 3 with Zero Downtime by why-el on Tuesday September 16, 2014 @05:11AM (#8323630)
Exactly. I handle API changes the same way at my place (Its an internal API exposed to colleagues only).