Sha256: 21b27002823ea41d04253cc62e554ca2f5694efcf1d098b045e46acdb2bda42d

Contents?: true

Size: 599 Bytes

Versions: 26

Compression:

Stored size: 599 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) {
    return this.storage.store(key);
  },
  all: 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

26 entries across 26 versions & 1 rubygems

Version Path
ende-0.3.13 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.12 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.11 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.10 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.9 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.8 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.7 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.6 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.5 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.4 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.3 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.2 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.1 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.3.0 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.2.21 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.2.20 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.2.19 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.2.18 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.2.17 vendor/components/indefinido-indemma/lib/record/queryable.js
ende-0.2.16 vendor/components/indefinido-indemma/lib/record/queryable.js