nathanvda/cocoon — pull request #206 by rubensmabueno (2014-04-02 04:41:17+00:00)
Title: Added a limit condition that interrupt insertion

As mentioned in https://github.com/nathanvda/cocoon/issues/194, I made a contribution that consider a limit condition in parameter as:

```ruby
link_to_add_association 'Add Association', f, :associations, limit: 3
```

and interrupt the insertion the nested associations in that node and also trigger the event ``` cocoon:limit-reached ```.