I have a two tables joined with a join table - this is just pseudo code:
Library Book LibraryBooks
What I need to do is if i have the id of a l
If you want a one-dimensional array of libraries returned, with duplicates removed.
l.books.map{|b| b.libraries}.flatten.uniq