diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-20 20:58:41 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-20 21:12:34 +0900 |
commit | 4b884fc732c574c40296a2f78816b25a06b64ffe (patch) | |
tree | 7db512a56b7296be65b36232892b00687451020d /railties/lib | |
parent | 1835d87fb848fd9f13e43bf16abd41be231b1666 (diff) | |
download | rails-4b884fc732c574c40296a2f78816b25a06b64ffe.tar.gz rails-4b884fc732c574c40296a2f78816b25a06b64ffe.tar.bz2 rails-4b884fc732c574c40296a2f78816b25a06b64ffe.zip |
Preprocess association query handling in predicate builder
Currently association query is handled as a postprocess. This has two
problems.
1. When `value` is a `Hash`, we need to skip the postprocess using
`next`.
2. `can_be_bound?` should return false if
`table.associated_with?(column_name)` is true (pass to the postprocess).
These are unneeded if preprocessing association query handling.
Diffstat (limited to 'railties/lib')
0 files changed, 0 insertions, 0 deletions