brianhempel / active_record_union

UNIONs in ActiveRecord! Adds proper union and union_all methods to ActiveRecord::Relation.
Other
419 stars 42 forks source link

Support for sinatra-activerecord #12

Open pplant opened 7 years ago

pplant commented 7 years ago

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

brianhempel commented 7 years ago

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.