Fixed a ActiveRecord bug

Fixed a bug where you couldn't retrieve a referenced model.
Merge pull request #36 from BlackBoxFramework/dev

Fixed a ActiveRecord bug