Fixed automatic inverse_of for models nested in module

First contribution to Rails. I was not entirely sure if I should re-use existing test models or create new ones for this specific example.

Sorry i meant @amccloud , can you add a test case for this question?