Make the Rails 3.2 hack less strict, as it still works with Rails 4