brianhempel / active_record_union

UNIONs in ActiveRecord! Adds proper union and union_all methods to ActiveRecord::Relation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for sinatra-activerecord

pplant opened this issue · comments

Is there a way to use this extension also within sinatra-activerecord?

I'm not familiar with sinatra-activerecord, but it might work if the Sinatra version is just regular ActiveRecord.

The ActiveRecord::Relation::Union module in this gem just needs to be mixed into ActiveRecord::Relation.