nesquena/query_reviewer — pull request #13 by mikegee (2012-02-29 21:27:17+00:00)
Title: dynamically enabled per request based on session

WIth this commit, the application may set "enabled" to "based_on_session" in the config file. Then, query_reviewer acts as if "enabled" is true or false based on this session value.

The application would need an action to toggle this session variable, presumably available to only system administrators. Here's an example:

```ruby
def toggle_query_reviewer
session["query_review_enabled"] = !session["query_review_enabled"]
redirect_to root_url
end
```

Hopefully, you find these changes minor and straightforward. Let me know you see any issues with this.

Thanks!

-Mike