/app/assets/javascripts/collections/user_collection.js
JavaScript | 13 lines | 11 code | 2 blank | 0 comment | 2 complexity | f5032baf5504533fc07d99501c111392 MD5 | raw file
- if (typeof Fulcrum == 'undefined') {
- Fulcrum = {};
- }
- Fulcrum.UserCollection = Backbone.Collection.extend({
- model: Fulcrum.User,
- forSelect: function() {
- return this.map(function(user) {
- return [user.get('name'),user.id];
- });
- }
- });