Making activeresource and activesupport version agnostic