elasticsearch/elasticsearch-rails — pull request #140 by FUT (2014-06-09 12:57:13+00:00)
Title: Fix changed attributes matching

If I define `as_indexed_json` function to return symbol-keyed hash then the changes will not be detected because if I changed name:
```
def as_indexed_json
{name: name}
end

as_indexed_json.keys.include? 'name' #=> false
```

Thus I recommend to compare string variants.