I"þ(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.Models.User = (function(superClass) { extend(User, superClass); User.identity = "User"; User.resources = { url: "/users", admin: { url: "/admin/users" } }; User.paginate = { per: 10 }; User.attributes = { email: { validations: { presence: true, format: { "with": /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i } } }, username: { validations: { presence: true, format: { "with": /^[a-z][a-z0-9_\-]*$/i } } }, password: { validations: { presence: { on: "create" }, confirmation: true } }, passwordConfirmation: { remoteName: "password_confirmation" }, confirmed: {}, createdAt: { type: "Date", remoteName: "created_at" }, updatedAt: { type: "Date", remoteName: "updated_at" } }; User.receivedSignal = function(signal, data) { return console.log("App.Models.User.receivedSignal: " + signal); }; function User(data) { User.__super__.constructor.call(this, data); } User.prototype.receivedSignal = function(signal, data) { return console.log("App.Models.User#receivedSignal: " + signal); }; return User; })(App.Models.Base); }).call(this); :ET