fixed has many through
refactor extracted the has-many-through code to a seperate method
Merge pull request #59 from abenari/57_rebase

fixed has many through