Displaying 1 result from an estimated 1 matches for "sanitized_conditions".
Did you mean:
sanitize_conditions
2011 Jan 11
0
[PATCH] Polymorphic belongs_to association with :conditions issues
...escription):
If you define a polymorphic belongs_to association and it has conditions on it, those conditions cause a NameError when you try to access the target object, of the style saying "hey, there''s no such thing as a Note::Notable".
This is because a reflection''s sanitized_conditions method calls klass, and klass calls class_name, and class_name calls derive_class_name, and, well, derive_class_name can''t really derive a class name properly, in the case of a polymorphic belongs_to, because the reflection doesn''t have all the information it needs -- the associat...