Switched strategy on the id_before_type_cast problem and just did an explicit method so postgresql wouldnt choke on id is null
Switched strategy on the id_before_type_cast problem and just did an explicit method so postgresql wouldnt choke on id is null

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

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