Add support to ActiveSupport < 4