 	# @param callback (Function(Error):null):				Callback
 	###
 	@incrementNbSensorRules(callback)
-		@nbSensorRules++
-		RuleModel.update @, callback
+		@updateAttributes nbSensorRules: @nbSensorRules+1 callback
 	
 	###
 	# decrementNbSensorRules

	# @param callback (Function(Error):null):				Callback
	###
	@incrementNbSensorRulesMet(callback)
		@nbSensorRulesMet++
		RuleModel.update @, callback
	
	###
	# decrementNbSensorRulesMet

###

cozydb = require 'cozydb'

SensorRule = require './sensorRule'
ActuatorRule = require './actuatorRule'

