use activesupport upto version 4