Dynamic finder method like scoped_by_* create methods so that method_missing is not hit next time. Adding a test for this scenario.
Dynamic finder method like scoped_by_* create methods so that
method_missing is not hit next time. Adding a test for this
scenario.

Signed-off-by: José Valim <0c2436ea76ed86e37cc05f66dea18d48ef390882@gmail.com>

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