I’ve got a problem with deserialization of AR “serialize” method
(http://apidock.com/rails/ActiveRecord/Base/serialize/class) in my
It just gives me pure String instead of my data Array.
User > AR::Base
serialize :roles, Array
u = User.new
u.roles = [“admin”, “support”]
=> [“admin”, “support”]
In test environment:
=> “— \n- admin\n”
it is a String. It seems that YAML serialize is not working there but
I have no idea what to do to get it working.
I was already trying to figure it out with these, but with no luck.
Any advice would be greatly appreciated.