How can i have a validator that look at the same time to 2 models?
I have the following situation: An ActiveRecord foo and An ActiveRecord bar.
Whem an attribute of foo is X i want that the field A of bar be required, if it's Y i want that the field B of bar be required.