Remove redundant substitute index when constructing bind values

refer https://github.com/rails/rails/pull/17463
Merge pull request #517 from yahonda/rails42_substitute_at

Rails 4.2 Remove redundant substitute index when constructing bind values