Sha256: a03f151e2516233340e4f7e3e90fad6372cc62f0895c20d1d9514131fcc7049b
Contents?: true
Size: 711 Bytes
Versions: 20
Compression:
Stored size: 711 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: resource.find was called with a falsey value"); } return this.storage.store(key); }, every: function() { return 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
20 entries across 20 versions & 1 rubygems