       attributes[ key ] = value for key, value of filters when typeof value in [ 'number', 'string' ]
       collection.add @new attributes
     collection
+
+  all: ->
+    @where id: /./
 
   # работа с аттрибутами
 

        @updated = updated if updated
        @onUpdate? changed
        @trigger 'update', changed
    @

  updateAttribute: ( name, value ) ->

      model.write()
    @

  select: ( options ) ->
    # отправляет на сервер запрос на выборку моделей
    obj = {}
    if typeof options is 'object'
      obj.selector = Object.keys( options )[0]
      obj.params   = options[ obj.selector ]
    else
      obj.selector = options
      obj.params   = {}
    @query @_name.lower() + 's.select', obj
    @

  write: ->
