Ensure that the surrounding code in Relation#to_a respects the default_scope (as well as having Relation#arel respect the default scope). Fixes #1233.
Ensure that the surrounding code in Relation#to_a respects the default_scope (as well as having Relation#arel respect the default scope). Fixes #1233.

kddeisz/rails,Stellenticket/rails,iainbeeston/rails,illacceptanything/illacceptanything,starknx/rails,betesh/rails,richseviora/rails,utilum/rails,kaspth/rails,sergey-alekseev/rails,vipulnsward/rails,gauravtiwari/rails,MichaelSp/rails,MichaelSp/rails,elfassy/rails,marklocklear/rails,tgxworld/rails,odedniv/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,arunagw/rails,travisofthenorth/rails,bolek/rails,mtsmfm/railstest,schuetzm/rails,rossta/rails,deraru/rails,baerjam/rails,jeremy/rails,bogdanvlviv/rails,kmayer/rails,maicher/rails,travisofthenorth/rails,xlymian/rails,deraru/rails,illacceptanything/illacceptanything,assain/rails,georgeclaghorn/rails,sergey-alekseev/rails,vassilevsky/rails,kamipo/rails,Stellenticket/rails,joonyou/rails,joonyou/rails,samphilipd/rails,notapatch/rails,starknx/rails,palkan/rails,betesh/rails,gcourtemanche/rails,Vasfed/rails,bolek/rails,felipecvo/rails,iainbeeston/rails,pvalena/rails,kmcphillips/rails,mathieujobin/reduced-rails-for-travis,tijwelch/rails,yasslab/railsguides.jp,yasslab/railsguides.jp,gauravtiwari/rails,maicher/rails,mijoharas/rails,tgxworld/rails,illacceptanything/illacceptanything,pschambacher/rails,palkan/rails,kenta-s/rails,fabianoleittes/rails,rbhitchcock/rails,Edouard-chin/rails,illacceptanything/illacceptanything,voray/rails,BlakeWilliams/rails,kirs/rails-1,BlakeWilliams/rails,kachick/rails,printercu/rails,ttanimichi/rails,illacceptanything/illacceptanything,lucasmazza/rails,kaspth/rails,EmmaB/rails-1,felipecvo/rails,rbhitchcock/rails,coreyward/rails,mtsmfm/rails,yhirano55/rails,alecspopa/rails,riseshia/railsguides.kr,sealocal/rails,odedniv/rails,tijwelch/rails,coreyward/rails,sealocal/rails,utilum/rails,yalab/rails,illacceptanything/illacceptanything,lcreid/rails,88rabbit/newRails,Spin42/rails,koic/rails,ledestin/rails,88rabbit/newRails,illacceptanything/illacceptanything,aditya-kapoor/rails,shioyama/rails,esparta/rails,bradleypriest/rails,kirs/rails-1,arunagw/rails,elfassy/rails,repinel/rails,matrinox/rails,rossta/rails,kmayer/rails,jeremy/rails,baerjam/rails,hanystudy/rails,ngpestelos/rails,tgxworld/rails,stefanmb/rails,eileencodes/rails,mechanicles/rails,mijoharas/rails,ttanimichi/rails,yhirano55/rails,iainbeeston/rails,vipulnsward/rails,pvalena/rails,yawboakye/rails,jeremy/rails,vassilevsky/rails,brchristian/rails,mijoharas/rails,flanger001/rails,kirs/rails-1,yalab/rails,mechanicles/rails,richseviora/rails,mohitnatoo/rails,sergey-alekseev/rails,deraru/rails,palkan/rails,mathieujobin/reduced-rails-for-travis,gcourtemanche/rails,EmmaB/rails-1,Envek/rails,kachick/rails,kmcphillips/rails,prathamesh-sonpatki/rails,ngpestelos/rails,eileencodes/rails,eileencodes/rails,utilum/rails,vipulnsward/rails,Sen-Zhang/rails,MichaelSp/rails,Stellenticket/rails,tijwelch/rails,bradleypriest/rails,jeremy/rails,kamipo/rails,alecspopa/rails,Envek/rails,esparta/rails,EmmaB/rails-1,kaspth/rails,yahonda/rails,Sen-Zhang/rails,assain/rails,travisofthenorth/rails,amoody2108/TechForJustice,lucasmazza/rails,Erol/rails,gfvcastro/rails,hanystudy/rails,starknx/rails,pschambacher/rails,arjes/rails,Envek/rails,notapatch/rails,aditya-kapoor/rails,tjschuck/rails,pvalena/rails,ledestin/rails,untidy-hair/rails,felipecvo/rails,tjschuck/rails,bolek/rails,printercu/rails,odedniv/rails,MSP-Greg/rails,samphilipd/rails,riseshia/railsguides.kr,iainbeeston/rails,mtsmfm/railstest,schuetzm/rails,printercu/rails,esparta/rails,joonyou/rails,georgeclaghorn/rails,mohitnatoo/rails,brchristian/rails,repinel/rails,fabianoleittes/rails,mohitnatoo/rails,Edouard-chin/rails,tjschuck/rails,88rabbit/newRails,Vasfed/rails,kamipo/rails,kddeisz/rails,xlymian/rails,fabianoleittes/rails,marklocklear/rails,lcreid/rails,alecspopa/rails,maicher/rails,coreyward/rails,matrinox/rails,kenta-s/rails,rafaelfranca/omg-rails,BlakeWilliams/rails,bradleypriest/rails,BlakeWilliams/rails,Erol/rails,baerjam/rails,yalab/rails,riseshia/railsguides.kr,arunagw/rails,brchristian/rails,illacceptanything/illacceptanything,shioyama/rails,shioyama/rails,lcreid/rails,travisofthenorth/rails,georgeclaghorn/rails,arjes/rails,koic/rails,assain/rails,gfvcastro/rails,sealocal/rails,rbhitchcock/rails,Sen-Zhang/rails,gfvcastro/rails,aditya-kapoor/rails,MSP-Greg/rails,stefanmb/rails,ngpestelos/rails,mtsmfm/rails,yhirano55/rails,bogdanvlviv/rails,Vasfed/rails,rafaelfranca/omg-rails,Spin42/rails,illacceptanything/illacceptanything,repinel/rails,prathamesh-sonpatki/rails,rails/rails,assain/rails,untidy-hair/rails,rafaelfranca/omg-rails,prathamesh-sonpatki/rails,Erol/rails,mtsmfm/railstest,illacceptanything/illacceptanything,riseshia/railsguides.kr,yasslab/railsguides.jp,baerjam/rails,marklocklear/rails,gavingmiller/rails,bogdanvlviv/rails,Erol/rails,pvalena/rails,koic/rails,hanystudy/rails,yahonda/rails,vipulnsward/rails,flanger001/rails,lcreid/rails,fabianoleittes/rails,illacceptanything/illacceptanything,vassilevsky/rails,amoody2108/TechForJustice,tjschuck/rails,illacceptanything/illacceptanything,mathieujobin/reduced-rails-for-travis,kmayer/rails,Edouard-chin/rails,gauravtiwari/rails,printercu/rails,bogdanvlviv/rails,mtsmfm/rails,notapatch/rails,kmcphillips/rails,flanger001/rails,schuetzm/rails,Envek/rails,yhirano55/rails,arjes/rails,samphilipd/rails,pschambacher/rails,yahonda/rails,arunagw/rails,MSP-Greg/rails,betesh/rails,Stellenticket/rails,mohitnatoo/rails,esparta/rails,kddeisz/rails,notapatch/rails,voray/rails,georgeclaghorn/rails,elfassy/rails,mechanicles/rails,richseviora/rails,gavingmiller/rails,lucasmazza/rails,rossta/rails,betesh/rails,voray/rails,shioyama/rails,matrinox/rails,Edouard-chin/rails,ledestin/rails,gcourtemanche/rails,kddeisz/rails,yalab/rails,stefanmb/rails,Vasfed/rails,rails/rails,yahonda/rails,joonyou/rails,tgxworld/rails,yawboakye/rails,illacceptanything/illacceptanything,gavingmiller/rails,MSP-Greg/rails,Spin42/rails,flanger001/rails,yawboakye/rails,rails/rails,repinel/rails,xlymian/rails,utilum/rails,kenta-s/rails,schuetzm/rails,rails/rails,eileencodes/rails,mechanicles/rails,aditya-kapoor/rails,palkan/rails,untidy-hair/rails,deraru/rails,yawboakye/rails,untidy-hair/rails,yasslab/railsguides.jp,amoody2108/TechForJustice,prathamesh-sonpatki/rails,ttanimichi/rails,gfvcastro/rails,kmcphillips/rails,kachick/rails