fulcrum /app/assets/javascripts/collections/user_collection.js

Language Javascript Lines 14
MD5 Hash f5032baf5504533fc07d99501c111392
Repository https://bitbucket.org/sqctest01/fulcrum.git View Raw File View Project SPDX
| Open JSFiddle
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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];
    });
  }
});
Back to Top