Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Url Scoping in Spine.js
class App.Ticket extends Spine.Model
@configure 'Ticket', "id", "project_id"
@scope: ->
"projects/#{current.project_id}"
scope: ->
"projects/#{@project_id}"
@kaichen

This comment has been minimized.

Copy link

kaichen commented Aug 20, 2012

For nested resources?

@whatyoubendoing

This comment has been minimized.

Copy link

whatyoubendoing commented Jan 15, 2013

How are you using this scoped URL @sishen?

@sishen

This comment has been minimized.

Copy link
Owner Author

sishen commented Mar 30, 2013

@benhainez Sorry i didn't get the notification on your comment. Basically you can use my patched version of SpineJS http://github.com/sishen/spine. There is a PR for this feature and I think it will be applied to the upstream soon. spine/spine#410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.