roundlake/joosy — pull request #44 by dirkholzapfel (2012-07-16 22:06:30+00:00)
Title: pass complete json answer as second parameter to find 'all' callback 

I'm realizing pagination with Joosy at the moment - so I need to pass some additional information with the JSON answer. In order to reach the complete JSON response in the "find 'all' " callback I needed to add a second parameter, so I can say:

```javascript
@fetch (complete) ->
User.find 'all', (users, data) =>
@data.pagination = {total: data.total, total_pages: data.total_pages, current_page: data.current_page}
@data.users = users
complete()
```