remiprev/her — pull request #153 by calmyournerves (2013-07-11 13:48:41+00:00)
Title: don't include associated models in to_params

Let's assume the following models:

```ruby
class User
include Her::Model
has_many :blog_posts
end

class BlogPost
include Her::Model
end
```

Now when I consume an API which includes the corresponding blog posts in the user response, I get an object like this:

```
Foo::User.find(1)
> #>, @opts={:class_name=>"BlogPost", :name=>:blog_posts, :data_key=>:blog_posts, :default=>[], :path=>"/blog_posts", :inverse_of=>nil}, @params={}, @klass=Foo::BlogPost, @name=:blog_posts>>
```

When trying to save this model, it sends the following parameters:

````
{:id=>1, :name=>"Tobias Fünke", :blog_posts=>[#, #]}
```

This doesn't seem correct to me. This PR changes the to_params method in `/lib/her/model/parse.rb` to exclude associated models from parameters altogether.