This can be rewritten to:
```ruby
options[:as] = :string if options[:attribute].to_s.match /contains|starts_with|ends_with/
```

If only we didn't support Ruby 1.8, because 1.9 has `Symbol#match` so we wouldn't need to call `to_s` above.