Sha256: f21d058f3f5db37c4fadaebd677400932ad6cfeb21fa8ac2591533ec69300af5

Contents?: true

Size: 1.76 KB

Versions: 60

Compression:

Stored size: 1.76 KB

Contents

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

Version data entries

60 entries across 27 versions & 1 rubygems

Version Path
loco-rails-3.0.3 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.5.3 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.5.2 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-3.0.2 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-3.0.1 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.5.1 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.5.0 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.4.0 test/dummy/tmp/cache/assets/sprockets/v3.0/0H/0HPf7vYNOArWyXrrewBtlhz8Xb08uHh-k8Qn0nPLVnE.cache
loco-rails-2.4.0 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.3.0 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.3.0 test/dummy/tmp/cache/assets/sprockets/v3.0/0H/0HPf7vYNOArWyXrrewBtlhz8Xb08uHh-k8Qn0nPLVnE.cache
loco-rails-3.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/0H/0HPf7vYNOArWyXrrewBtlhz8Xb08uHh-k8Qn0nPLVnE.cache
loco-rails-3.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.2.2 test/dummy/tmp/cache/assets/sprockets/v3.0/0H/0HPf7vYNOArWyXrrewBtlhz8Xb08uHh-k8Qn0nPLVnE.cache
loco-rails-2.2.2 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.2.1 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.2.1 test/dummy/tmp/cache/assets/sprockets/v3.0/0H/0HPf7vYNOArWyXrrewBtlhz8Xb08uHh-k8Qn0nPLVnE.cache
loco-rails-2.2.0 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache
loco-rails-2.2.0 test/dummy/tmp/cache/assets/sprockets/v3.0/0H/0HPf7vYNOArWyXrrewBtlhz8Xb08uHh-k8Qn0nPLVnE.cache
loco-rails-2.1.0 test/dummy/tmp/cache/assets/sprockets/v3.0/GF/gf-l2EqyRmqf0uVzdKAzoaU_4reek2oHV4lu7ouaNJ0.cache