fixing the ternary operation where the logic is very confusing.
fixing the ternary operation where the logic is very confusing.

[#5136 state:resolved]

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

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