Created
August 16, 2012 17:32
-
-
Save sishen/3371899 to your computer and use it in GitHub Desktop.
Url Scoping in Spine.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App.Ticket extends Spine.Model | |
@configure 'Ticket', "id", "project_id" | |
@scope: -> | |
"projects/#{current.project_id}" | |
scope: -> | |
"projects/#{@project_id}" |
How are you using this scoped URL @sishen?
@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
For nested resources?