Removed dependency on activesupport 3.