allow ActiveSupport 3, improves #1414