ryanb/cancan — comment on commit 5ab7dea2f0290237e2462072a1ab3bb156a55b12
File:  line 0
By kirkconnell:

It was a strange thing. Nested models ended up with a different class object id than their original class. To better explain this, supposed you had models `Author` and `Book`. In `Author` we had a `has_many :books` association. The problem was that the result of `author.books.first.class.object_id == Book.object_id` was false. This made a couple of specs to fail since they were comparing object arrays.