I see. Was wondering if we could stop looping once a match has been found instead of finding all matches and picking the last:

```ruby
field.to_s.split(".").detect {|x| @klass.columns_hash[x]}
```