presidentbeef/brakeman — pull request #116 by presidentbeef (2012-07-20 02:48:00+00:00)
Title: Improve Rails 3 route processing

This patch fixes some issues with Rails 3 route processing.

Improvements include:

* Handling "controller" blocks

```ruby
controller :whatever do
get :something => :else
end
```

* Handling routes that don't specify a controller

```ruby
resource :book do
get :reserve
end
```

* Handling `:to` options in `match`

```ruby
match 'path', :to => 'controller#action'
```

* Handling `:to` options in blocks

```ruby
resource :book do
get 'reserve', :to => :checkout
end
```