spine/spine — pull request #410 by sishen (2013-02-13 08:27:03+00:00)
Title: The Model can accept the scope to do the url scoping, especially useful for nested resources.

The scope can either be a function or string. The generated url will be "scope/resources".

For example,

```javascript
Ticket.scope = "/projects/1"
Ticket.url() -> "/projects/1/tickets"
new Ticket({id: 1}).url() -> "/projects/1/tickets/1"
```