ActiveSupport Fix

- fix when activesupport lower version 4.0 is used