Created
March 26, 2015 19:41
-
-
Save towski/d90816a64c3357468ed5 to your computer and use it in GitHub Desktop.
This file contains 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 HomeBase.Models.Role extends Backbone.SuperModel | |
paramRoot: 'role' | |
urlRoot: '/roles' | |
class HomeBase.Collections.RolesCollection extends Backbone.Collection | |
model: HomeBase.Models.Role | |
comparator: (role)-> | |
if role.isNew() then '' else role.get('name').toLowerCase() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment