Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add YAML compatibility for objects from Rails 4.2 | Sean Griffin | 2015-03-10 | 2 | -0/+204 |
As of Ruby 2.2, Psych can handle any object which is marshallable. This was not true on previous versions of Ruby, so our delegator types had to provide their own implementation of `init_with` and `encode_with`. Unfortunately, this doesn't match up with what Psych will do today. Since by the time we hit this layer, the objects will have already been created, I think it makes the most sense to just grab the current type from the class. |