jcasimir/draper — Issue #48: decorated.id != model.id
Author: vovayartsev
Created: 2011-10-16 15:03:25+00:00
State: open

Let's assume we are decorating an Article model with draper-0.8.1:

```ruby
article = Article.last
puts article.id # ==> 86
decorated = ArticleDecorator.decorate(article)
puts decorated.id # ==> 53599620
```

Looks like decorated.id returns the decorator's object_id rather than the :id attribute from the database. This is confusing because all other attributes are decorated automatically.