{:uriI"ªfile://app/assets/javascripts/controllers/admin/users.coffee?type=application/javascript&pipeline=self&id=5bf11655d3338706c8950fe994bac22d72f546d77480add02ff506570ddd7734:ET:load_pathI"app/assets/javascripts;T: filenameI":app/assets/javascripts/controllers/admin/users.coffee;T: nameI"controllers/admin/users;T:logical_pathI"$controllers/admin/users.self.js;T:content_typeI"application/javascript;T: sourceI" (function() { var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; App.Controllers.Admin.Users = (function(superClass) { extend(Users, superClass); function Users() { return Users.__super__.constructor.apply(this, arguments); } Users.prototype.index = function() { this.view = new App.Views.Admin.Users.List({ users: [] }); this.view.render(); this.connectWith([App.Models.User]); return App.Models.User.get("all").then((function(_this) { return function(resp) { return _this.view.renderUsers(resp.resources); }; })(this)); }; Users.prototype.show = function() { var view; view = new App.Views.Admin.Users.Show; return App.Models.User.find(this.params.id).then((function(_this) { return function(user) { return view.render(user); }; })(this)); }; Users.prototype.edit = function() { var view; view = new App.Views.Admin.Users.Form({ user: new App.Models.User({ id: this.params.id }) }); return view.render(); }; Users.prototype.receivedSignal = function(signal, data) { switch (signal) { case "User created": return App.Models.User.find(data.id).then((function(_this) { return function(user) { return _this.view.renderUsers([user], 'prepend'); }; })(this)); } }; return Users; })(App.Controllers.Base); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"Hfile-digest://app/assets/javascripts/controllers/admin/users.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%˜˜Û0SI<Šãw¾@â¢Vi¼eU!ÜOûïøë9¾mY: lengthi :dependencies_digest"%Û s‚µhWò§šp¬2ËYküã * ÿ}ž‰‹%Ë:idI"E5bf11655d3338706c8950fe994bac22d72f546d77480add02ff506570ddd7734;F: mtimel+³)ÄV