This project is archived and is in readonly mode.
ActiveRecord::Reflection cannot be compared with nil
-
Ryan Bates
It's probably best to fix this for other objects as well.
reflection == Object.new # raises an errorAttached is a patch which ensures the object is a reflection before comparing.
-
Bob Aman
Good point, agreed.
-
Pratik
- Title changed from PATCH: ActiveRecord::Reflection cannot be compared with nil to ActiveRecord::Reflection cannot be compared with nil
-
Repository
- State changed from new to resolved
(from [8f4d3957a6986fe450cfd9058bb92ae1d6e5e745]) Don't raise exception when comparing ActiveRecord::Reflection. [#842 ActiveRecord::Reflection cannot be compared with nil state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
