Cache the descends_from_activerecord? call to speed up query generation. [skaes] Closes #9765
Cache the descends_from_activerecord? call to speed up query generation. [skaes] Closes #9765


git-svn-id: afc9fed30c1a09d8801d1e4fbe6e01c29c67d11f@7723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de

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