1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/relation
Aaron Patterson 5abb45d53a Dup and freeze complex types when making query attributes
This avoids problems when complex data structures are mutated _after_
being handed to ActiveRecord for processing.  For example false hits in
the query cache.

Fixes #46044
2022-09-19 09:41:39 +02:00
..
batches Optimize Active Record batching for whole table iterations 2022-07-06 00:21:39 +03:00
predicate_builder Fix where on polymorphic association with empty array 2021-01-09 13:33:57 +09:00
batches.rb Optimize Active Record batching for whole table iterations 2022-07-06 00:21:39 +03:00
calculations.rb Avoid query from calculations on contradictory relation 2022-05-11 15:27:01 -07:00
delegation.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
finder_methods.rb Do not mutate relation when implicitly selecting a primary key in ActiveRecord.find 2022-09-02 16:38:06 +03:00
from_clause.rb Merge pull request #38145 from sinsoku/avoid_assigning_the_same_value_to_join_values 2020-01-04 21:31:36 +09:00
merger.rb Fix merging select values from a different model's relation 2021-03-09 08:12:28 +09:00
predicate_builder.rb Dup and freeze complex types when making query attributes 2022-09-19 09:41:39 +02:00
query_attribute.rb Don't use type.cast(value) to emulate unchecked serialized value in unboundable? 2021-03-15 12:23:40 +09:00
query_methods.rb Remove redundant ELSE branch from the ActiveRecord::Base.in_order_of SQL query 2022-09-14 18:37:37 +03:00
record_fetch_warning.rb Eliminate internal uses of PerThreadRegistry and deprecate it 2021-11-22 09:53:16 +01:00
spawn_methods.rb Remove outdated comment of ActiveRecord's spawn method. 2022-06-12 06:35:33 +02:00
where_clause.rb Change how Merging conditions on the same column works 2021-11-19 21:43:19 +00:00