Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Evil cache bug with composed_of #2084
is broken at line 247 due to caching. The problem is that rails does type conversions on activerecord fields. So for example if I have an AR class Foo with a field bar declared as an integer in the db then
However composed_of assumes that the there is no conversion during setting the object. Thus the aggregate objects will be returned with a string field rather than an integer field because the converted object was not read back and put in the cache.