mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
10f75af933
In practical terms, this allows serialized columns and tz aware columns to be used in wheres that go through joins, where they previously would not behave correctly. Internally, this removes 1/3 of the cases where we rely on Arel to perform type casting for us. There were two non-obvious changes required for this. `update_all` on relation was merging its bind values with arel's in the wrong order. Additionally, through associations were assuming there would be no bind parameters in the preloader (presumably because the where would always be part of a join) [Melanie Gilman & Sean Griffin] |
||
---|---|---|
.. | ||
active_record | ||
rails/generators | ||
active_record.rb |