`ActiveSupport.version >= Gem::Version.new('4.1.0.beta1')` is less hacky (assuming `active_support/version` is loaded).