How about:
```ruby
parameters {:units =>[{:name =>["g*"]}]}.with_indifferent_access
```