voxdolo/decent_exposure — Issue #30: use expose in rails 3.1 error
Author: liwh
Created: 2011-10-26 06:15:03+00:00
State: open

Now, in rails 3.1 ,the activeRecord new method like build method, when i use expose with collection new used, I got this
```ruby
class xxxController < ApplicationController
expose(:comments){Blog.first.comments}
expose(:comment)
end
```

Now, when i call comment and comments in a same view.I got a comment object with id is nil .