Sha256: 6eb936f63bca3ef8fdb5bf4353b9f0878aa58c9c0993a0d740204415b03bbb11

Contents?: true

Size: 784 Bytes

Versions: 26

Compression:

Stored size: 784 Bytes

Contents

extend   = require 'assimilate'
storable = require './storable'
# merge    = extend.withStrategy 'deep'
stampit  = require '../../vendor/stampit'

queryable =
  # FIXME don't let everyone use the same storage instance! or let it?
  storage: storable()
  find: (key) ->
    @storage.store key
  all: ->
    @storage.values()
  where: ->
    throw new Error 'queryable.where: Not implemented yet'

# Extend indemma
# TODO use stampit to extend record and model
model  = window.model      # TODO better way to get parent
record = window.record     # TODO better way to get parent

# queryable = stampit.compose queryable, storable


model.queryable = true
module.exports = queryable

model.mix (modelable) ->
  # TODO use stampit to extend record and model
  extend modelable, queryable

Version data entries

26 entries across 26 versions & 1 rubygems

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