Remove warning by using a custom coder
Remove warning by using a custom coder

The native JSON library bypasses the `to_json` overrides in
active_support/core_ext/object/to_json.rb by calling its native
implementation directly. However `ActiveRecord::Store` uses a
HWIA so `JSON.dump` will call our `to_json` instead with a
`State` object for options rather than a `Hash`. This generates
a warning when the `:encoding`, `:only` & `:except` keys are
accessed in `Hash#as_json` because the `State` object delegates
unknown keys to `instance_variable_get` in its `:[]` method.

Workaround this warning in the test by using a custom coder that
calls `ActiveSupport::JSON.encode` directly.

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