Skip to content

Instantly share code, notes, and snippets.

@jrhe
Created September 18, 2013 00:08
Show Gist options
  • Save jrhe/6602577 to your computer and use it in GitHub Desktop.
Save jrhe/6602577 to your computer and use it in GitHub Desktop.
isMale / isFemale ember checkbox helpers
App.User = DS.Model.extend({
gender: DS.attr('string'),
isFemale: function() { return this.get('gender') == 'female'; },
isMale: function() { return this.get('gender') == 'male'; }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment