Adjust conditional that checks ActiveRecord::VERSION since AR2.2 doesn't define it.