Sha256: f599cffd6f78efefd36594c5b536523694d7d1fbe2062941e2bd15f050243c1f

Contents?: true

Size: 1005 Bytes

Versions: 11

Compression:

Stored size: 1005 Bytes

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.Validators.Format = (function(superClass) {
    extend(Format, superClass);

    function Format() {
      Format.__super__.constructor.apply(this, arguments);
    }

    Format.prototype.validate = function() {
      var match;
      match = this.opts["with"].exec(this.val);
      if (match != null) {
        return true;
      }
      this._addErrorMessage();
      return false;
    };

    Format.prototype._addErrorMessage = function() {
      var message;
      message = "is invalid";
      return this.obj.addErrorMessage(message, {
        "for": this.attr
      });
    };

    return Format;

  })(App.Validators.Base);

}).call(this);
:ET

Version data entries

11 entries across 4 versions & 1 rubygems

Version Path
loco-rails-1.0.2 test/dummy/tmp/cache/assets/sprockets/v3.0/LSnAv4vZYkJjicyfXjJhaswGD_QQWu3ec6n8lInmvnU.cache
loco-rails-1.0.2 test/dummy/tmp/cache/assets/test/sprockets/v3.0/LSnAv4vZYkJjicyfXjJhaswGD_QQWu3ec6n8lInmvnU.cache
loco-rails-1.0.2 test/dummy/tmp/cache/assets/sprockets/v3.0/QcGlKcUvCZ3yiQHBEHmXHV4jaeFyo1FpHs0B9sDpj6U.cache
loco-rails-1.0.1 test/dummy/tmp/cache/assets/sprockets/v3.0/LSnAv4vZYkJjicyfXjJhaswGD_QQWu3ec6n8lInmvnU.cache
loco-rails-1.0.1 test/dummy/tmp/cache/assets/sprockets/v3.0/QcGlKcUvCZ3yiQHBEHmXHV4jaeFyo1FpHs0B9sDpj6U.cache
loco-rails-1.0.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/LSnAv4vZYkJjicyfXjJhaswGD_QQWu3ec6n8lInmvnU.cache
loco-rails-1.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/LSnAv4vZYkJjicyfXjJhaswGD_QQWu3ec6n8lInmvnU.cache
loco-rails-1.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/QcGlKcUvCZ3yiQHBEHmXHV4jaeFyo1FpHs0B9sDpj6U.cache
loco-rails-1.0.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/LSnAv4vZYkJjicyfXjJhaswGD_QQWu3ec6n8lInmvnU.cache
loco-rails-0.0.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/LSnAv4vZYkJjicyfXjJhaswGD_QQWu3ec6n8lInmvnU.cache
loco-rails-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/LSnAv4vZYkJjicyfXjJhaswGD_QQWu3ec6n8lInmvnU.cache