1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Sean Griffin 5bb26008ce Avoid infinite recursion when bad values are passed to tz aware fields
We had previously updated this to attempt to map over whatever was
passed in, so that additional types like range and array could benefit
from this behavior without the time zone converter having to deal with
every known type.

However, the default behavior of a type is to just yield the given value
to `map`, which means that if we don't actually know how to handle a
value, we'll just recurse infinitely. Since both uses of `map` in this
case occur in cases where we know receiving the same object will
recurse, we can just break on reference equality.

Fixes #23241.
2016-02-02 09:17:45 -07:00
..
active_record/connection_adapters introduce conn.data_source_exists? and conn.data_sources. 2015-09-22 19:48:44 +02:00
assets
cases Avoid infinite recursion when bad values are passed to tz aware fields 2016-02-02 09:17:45 -07:00
fixtures fix regression when loading fixture files with symbol keys. 2016-01-13 10:11:54 +01:00
migrations Internal test migrations use the private 'Current' version 2015-12-15 17:18:09 +10:30
models Add missing source_type if provided on hmt which belongs to an sti record 2016-01-24 22:25:12 +05:30
schema Use t.index in create_table instead of add_index in test schema 2016-01-31 17:36:04 +09:00
support Deprecate #table_exists?, #tables and passing arguments to #talbes 2015-11-09 23:13:23 +09:00
.gitignore
config.example.yml Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
config.rb