       '' + attribute is filter
     else if typeof filter is 'number'
       + attribute is filter
+    else if typeof filter is 'boolean'
+      attribute is filter
     else if filter instanceof Array
       '' + attribute in filter or + attribute in filter
     else false

  updateAttribute: ( name, value ) ->
    # обновляет один атрибут модели, проверяя его валидность, генерирует событие update.attributeName
    value = @normalizeValue value
    if @attributes[ name ] isnt value and @isValidAttributeValue( name, value )
      @attributes[ name ] = value
      @[ 'onUpdate' + name.capitalize() ]?()
      @trigger "update.#{ name }"
      true

    # связанных с текущей через модель through
    @getter name, =>
      delete @[ name ]
      @[ name ] = model.where correct: ->
        return true for model in @[ through ] when model[ key ] is @
        false
      @[ name ].subscribeTo @[ through ], 'update.length.add',    ( collection, model ) -> @add    model[ key ]
