presidentbeef/brakeman — Issue #25: Model parse error on value "=>" (tASSOC)
Author: thrillcall
Created: 2011-12-24 02:42:16+00:00
State: open

I am using the Migrant gem ( https://github.com/pascalh1011/migrant ) and have a line like the following in a model file:

```
# Migrant
structure do
...
country_code "US", :as => :string, :validates => [:presence, :inclusion => { :in => ["US"] }], :limit => 2
...
end
```

This causes brakeman to fail every time with the following error unless I comment this line out:

```
+ERRORS+
+-----------------------------------------------------------------------------------------------------------------+
| Error | Location |
+-----------------------------------------------------------------------------------------------------------------+
| parse error on value "=>" (tASSOC) | could not parse /path/to/my/app/models/address.rb |
+-----------------------------------------------------------------------------------------------------------------+
```

When commented out the rest of the scan seems to behave normally.