maccman/spine — Issue #128: Functions of class in associations
Author: kossnocorp
Created: 2011-10-27 17:38:11+00:00
State: open

Example:

``` coffeescript
class City extends Spine.Model

@belongsTo('region', 'Region')

@featured: -> @select(c) -> c.featured

```

``` coffeescript
region.cities().featured()
```