Check Rails version before requiring active_support dependencies