This project is archived and is in readonly mode.

#6368 ✓duplicate
Jay

Object.exists?(nil) returned true in Rails 3.0.3, false in Rails < 3

Reported by Jay | February 3rd, 2011 @ 06:03 PM

in Rails 3.0.3

ruby-1.9.2-p0 > Collection.exists?(nil)
=> true

in Rails 2.3.5

ruby-1.8.7-p249 > Collection.exists?(nil)
=> false

Expected behavior: same as Rails 2.3.5

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages