Fix data cache on model for associations, fixes #248
Merge pull request #263 from ninech/cache_associations

Fix data cache on model for associations, fixes #248