Add support to ActiveSuport < 4