ActiveRecord::Relation#except and #only loses scope extensions

12 views
Skip to first unread message

iain

unread,
Mar 19, 2011, 5:47:09 PM3/19/11
to Ruby on Rails: Core
Hi,

I've written a patch to fix a bug in except and only on
ActiveRecord::Relation to lose any extensions added by earlier scopes.
Since making a pull request is erroring on my on github, I've added
the patch to lighthouse too.

This can be added to the Rails 3.0.x branch as well.

https://github.com/iain/rails/commit/a0bd5ba2fa38155ef6c036b256b08414eb9a2af1
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6598-activerecordrelationexcept-and-only-loses-scope-extensions

Any feedback is greatly appreciated

Iain
Reply all
Reply to author
Forward
0 new messages