ActiveRecord model that uses two tables (kind of like UNION in SQL)

JS wrote:

Thanks for that very pragmatic answer Michael! After you replied I went to dig into the Agile Rails book, and DHH says the same thing - and I didn't remember it. Hahah! I've now created an extension that does these types of queries. Works like a charm!

Thanks!

/JS

Hi, can you post the way you made that extension ? I mean, did you created a new model, or it's inside /lib or is a plugin ?

Thanks!