It would appear the only bad thing is that if there are no joins yet, opts[:join] returns NIL
I had to create a method to handle all that, but it shortens my line length anyways, so it all worked out! def table_already_joined?(dataset_object, table_name) return false if dataset_object.nil? return false if dataset_object.opts[:join].nil? return dataset_object.opts[:join].map(&:table_expr).include?(table_name) end -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
