Iterate over classes
Posted on 2014-04-10
I have class A and B. A has many Bs.
B has a field is_visible which can be true or false
I have alot of As as well
I can acquire a set of As by doing the follwoing:
@As = X.find_by...
Need to iterate over all the As, and return Bs where B.is_visble is true.
Best way to do this?