Unable to serialize as ActiveSupport::HashWithIndifferentAccess anymore

前端 未结 4 1550
無奈伤痛
無奈伤痛 2021-01-18 16:46

For reasons that I\'m so far completely unable to decipher, I\'m no longer able to use ActiveSupport::HashWithIndifferentAccess anymore.

The relevant part of model l

4条回答
  •  野的像风
    2021-01-18 17:11

    If you can, switch over to syck.

    In application.rb:

    require 'yaml'
    YAML::ENGINE.yamler = 'syck'
    

提交回复
热议问题