alphagov/whitehall — pull request #586 by bradleywright (2013-06-04 21:22:28+00:00)
Title: Restore :attr_accessor behaviour

In 1.9.3 the YAML parser has changed to psych, which doesn't persist instance variables across serialisations.

This restores the behaviour by explicitly stashing the instance variables before serialisation takes place.

See https://gist.github.com/jrafanie/3011499 for background.

https://www.pivotaltracker.com/story/show/51051549

I'm not sure how to test this properly - any ideas? Also, are there other delayed jobs that will suffer from this issue? Search indexing?