airbrake/airbrake — pull request #328 by grosser (2014-09-11 17:47:30+00:00)
Title: fix having symbols in the environment blows up filter_parameters with blocks

fixes https://github.com/airbrake/airbrake/issues/315

```
TypeError (can't dup Symbol):
actionpack (3.2.19) lib/action_dispatch/http/parameter_filter.rb:42:in `dup'
actionpack (3.2.19) lib/action_dispatch/http/parameter_filter.rb:42:in `block (2 levels) in compiled_filter'
actionpack (3.2.19) lib/action_dispatch/http/parameter_filter.rb:32:in `each'
actionpack (3.2.19) lib/action_dispatch/http/parameter_filter.rb:32:in `block in compi
```

I tried making a test for this but could not .... this cucumber setup is super messy and unit-tests don't have rails :/

```
+ Scenario: Filtering vs symbols
+ When I configure the Airbrake shim
+ And I run `rails generate airbrake -k myapikey -t`
+ When I configure the notifier to use the following configuration lines:
+ """
+ config.api_key = "myapikey"
+ config.logger = Logger.new STDOUT
+ """
+ And I configure the application to filter parameter "block"
+ And I define a response for "TestController#index":
+ """
+ request.env["foo"] = {:foo => "bar"}
+ raise RuntimeError, "some message"
+ """
+ And I route "/test/index" to "test#index"
+ And I perform a request to "http://example.com:123/test/index" in the "production" environment
+ Then I should receive a Airbrake notification
+ And the Airbrake notification should not contain "dup"

+ parameter = (parameter == "block" ? "lambda { |x| x }" : parameter.inspect)
+ application_lines.insert(application_definition_line_index + 1, " config.filter_parameters += [#{parameter}]")
```

Monkeypatch:

```Ruby

```