 
   constructor: (@collection) ->
     @id = @collection._name
-    @rules = {}
+    @_rules = {}
 
     @collection.allow
       insert: @getSecFunction 'allow', 'insert'



  attachRules: (rules) ->
    @rules = _.extend @rules, rules

  attachCRUD: (rules) ->
    prepared = {}

      fields.push key for key, value of doc if fields.length is 0

      values = []
      for field, fieldRule of self._rules when field in fields
        if typeof fieldRule[scope] is 'object'
          rule = fieldRule[scope][type]
        else
