Created
July 10, 2013 21:17
-
-
Save codeimpossible/5970410 to your computer and use it in GitHub Desktop.
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
# Trim a set of permissions properties off of our model: | |
clone = @.omit _.filter @.keys, (key) -> !key.indexOf 'can_' |
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
// Trim a set of permissions properties off of our model: | |
var clone = this.omit( _.filter( this.keys(), function( key ) { | |
return !key.indexOf('can_'); | |
} ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment