I'm probably just not seeing it, but how would creating my own
exception help? The exception that is getting raised comes from
Rails (not me) and in one case is just "RuntimeError". Using the
steps above wouldn't I have to catch all of those exceptions,
evaluate the user agent, and then throw my own error which hoptoad
could then catch? Or am I not reading things correctly (very
possible :) ?
If I am though, would you mind if I modified the plugin to add a
similar "ignore" concept, but have it work on ENV? So in the
configure block I could say something like:
I've got it working, but wanted to get your input on how the
configuration should work. I've simplified my goal to only deal
user agents as it occurs to me most of the ENV variables are static
not as useful to filter on.
Right now you do this:
config.ignore_user_agent = "MSIE|Googlebot"
That gets converted into a Regexp in the code. Questions for
about your preference. Which of the below do you like best?