esensi/model — pull request #6 by erikthedeveloper (2014-07-12 14:08:42+00:00)
Title: Adds dynamic add/remove rules/ruleset_rules methods to ValidatingModelTrait - Tests Included

Adds methods to dynamically add/remove rules to either the default $rules or a specified $rulesets[$ruleset_name]
- Methods added
- `addRules(array $add_rules, $ruleset = null, $merge_with_saving = false)`
- `removeRules(array $remove_rules_keys, $ruleset = null, $merge_with_saving = false)`
- Tests added
- `testExistingGetAndSetRules()`
- `testAddRulesAddsToRules()`
- `testAddRulesAddsToRuleset()`
- `testRemoveRulesRemovesFromRules()`
- `testRemoveRulesRemovesFromRuleset()`