If it's important to be compatible we could reverse the order to match the last field first:

```ruby
# use reverse to start with the last field to be backwards compatible
field.to_s.split(".").reverse.detect {|x| @klass.columns_hash[x]}
```

However to warrant such a hack we need a use-case and a test to lock in that behavior.