Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enabled flag #119

Merged
merged 2 commits into from
Sep 7, 2016
Merged

Add enabled flag #119

merged 2 commits into from
Sep 7, 2016

Conversation

mstemm
Copy link
Contributor

@mstemm mstemm commented Sep 6, 2016

Add ability to flag any rule as explicitly enabled (or disabled).

If a rule has a enabled attribute, and if the value is false, call the
engine's enable_rule() method to disable the rule. Like add_filter,
there's a static method which takes the object as the first argument and
a non-static method that calls the engine.

This fixes #72.
New test case disables a rule that would otherwise match.
@mstemm mstemm merged commit fbcddba into dev Sep 7, 2016
@mstemm mstemm deleted the add-enabled-flag branch September 7, 2016 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant