I think the following is better.

```ruby
'method' => request.request_method,
```