Sha256: 9340df855af44e2a3f68cceb00a17de769d05f5c7f846c0c3e67c3af64dc1954
Contents?: true
Size: 755 Bytes
Versions: 14
Compression:
Stored size: 755 Bytes
Contents
var extend, model, queryable, record, stampit, storable; extend = require('assimilate'); storable = require('./storable'); stampit = require('../../vendor/stampit'); queryable = { storage: storable(), find: function(key) { if (!key) { throw new TypeError("InvalidFind: " + (this.resource.toString()) + ".find was called with a falsey value"); } return this.storage.store(key); }, every: function(callback) { return callback(this.storage.values()); }, where: function() { throw new Error('queryable.where: Not implemented yet'); } }; model = window.model; record = window.record; model.queryable = true; module.exports = queryable; model.mix(function(modelable) { return extend(modelable, queryable); });
Version data entries
14 entries across 14 versions & 1 rubygems