flyerhzm/simple_cacheable — pull request #16 by ScotterC (2012-12-18 00:05:05+00:00)
Title: Has one through belongs to

This is another odd one. Probably an anti pattern but I had a real life case in my project. Has_one through another has_one which belonged to a has_many.

Oddly enough, to get the tests to pass it just needed to make it through the code so I added the conditional of checking if the reverse association existed.

Take the pull request with a grain of salt. Easily something I could have missed.