search for: collectionsess

Displaying 1 result from an estimated 1 matches for "collectionsess".

Did you mean: collectionsetc
2005 Apr 25
1
Odd ActiveRecord#valid? behavior
I found that some of my records from a pre-existing database will occasionaly not be valid. There is no custom validation code on the class, but you can do something like: c = CollectionSession.find 24098 c.valid? => false c.errors.empty? => true What''s odd is that the code in validations.rb looks like it runs the various validations, and then just returns c.errors.empty? Any ideas? It does use a custom table name, and a custom primary key. It is consistant about wh...