{:uriI"ªfile://app/assets/javascripts/controllers/admin/users.coffee?type=application/javascript&pipeline=self&id=d562b1d08da2d7e1f0f33ebd9dc64a9c6f8a979342f55b04ebbac73910bc897d: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"rails-env;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"%JŽôÅg ¿Î¤ ;ª2$¾¼{4Ñ–%<Þè¼è¹':idI"Ed562b1d08da2d7e1f0f33ebd9dc64a9c6f8a979342f55b04ebbac73910bc897d;F: mtimel+³)ÄV