Re: [Rails-core] Merge scopes with OR

2012-08-11 Thread Jonathan Lozinski
Hi folks. I wrote the pull request that's in for this. I'm still looking for some feedback. In particular the main issue with it is in replacing the where clauses without hosing other aspects of the scopes. Perhaps Aaron would like to take a look at it, as I know he has done a fair bit of

[Rails-core] Merge scopes with OR

2012-08-10 Thread Dr. Steve Leung
I'd be quite interested in a feature merging scopes with OR - currently the default way is AND. The feature seems to have been requested/reported here: https://github.com/rails/rails/issues/5545 A pull request was sent, but it needs some work. I wrote a quick attempt too here: