remiprev/her — pull request #52 by simonc (2012-11-23 18:02:38+00:00)
Title: Orm#[] doesn't find relationships unless they're already loaded

It's very close to issue #51 but it's specific to relationships.

Given the following models:

``` ruby
class Article
include Her::Model
has_many :comments
end

class Comment
include Her::Model
belongs_to :article
end
```

Here is the behavior:

``` ruby
comment = Comment.find(42)
comment[:article] #=> nil
comment.article #=> #

comment[:article] #=> #

```

It's due to the way I implemented the `[]` and `has_key?` for issue #51.

I will try to find a way to make it work without too much hacky patch and keep you posted ;)