Shawn wrote:
ModelA.join(:model_b, ...).select("model_a.*".lit).allwhen I want to filter via some second model, but only return the results (and columns) from the first model. Is there a more elegant way to do this than select("...".lit) ?
ds = ModelA.join(:model_b, ...) ds.select(ds.first_source.*).all -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
