apotonick/roar — Issue #10: Property renamed with :from is not set
Author: chrisupb
Created: 2012-01-15 09:22:36+00:00
State: open

My user model has the property :password_confirmation and includes the UserRepresenter.

My UserRepresenter defines

```ruby
property :password_confirmation, :from => :passwordConfirmation
```
I do a POST with HTTP body:
{
"passwordConfirmation":"123"
}

My controller:

```ruby
def create
@user = User.new.from_json(request.raw_post)
puts @user.password_confirmation # =====> ""
puts @user.passwordConfirmation # ==== => "123"
end
```
Why is password_confirmation not set?