Make logic for after_commit and after_rollback :on option work like it does for validation callbacks.
Make logic for after_commit and after_rollback :on option work like it does for validation callbacks.

[#2991 state:committed]

Signed-off-by: Jeremy Kemper <b3f594e10a9edcf5413cf1190121d45078c62290@bitsweat.net>

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