maccman/spine — pull request #162 by abernier (2011-12-19 10:42:54+00:00)
Title: Little modification on relation.coffee in order to pass records along when refreshing a (hasMany) relation

Example with Album/Photo :

```
class Album extends Spine.Model
@configure 'Album', 'name'
@hasMany 'photos', 'Photo'
window.Album = Album

class Photo extends Spine.Model
@configure 'Photo', 'name'
@belongsTo 'album', 'Album'
window.Photo = Photo
```

When refreshing an album's photos, let's pass the photos that were refreshed

```
myAlbum = Album.create(name: 'My album')

Photo.bind 'refresh', (photos) ->
console.log photos

myAlbum.photos().refresh([
{name: 'photo1'}
{name: 'photo2'}
]);
```