diff options
author | Andrew White <andrew.white@unboxedconsulting.com> | 2016-01-23 15:01:55 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxedconsulting.com> | 2016-01-23 15:01:55 +0000 |
commit | 8de32bb25295787b68d307c74e50462cd99e6ecc (patch) | |
tree | cf9e5762457ca32d37813a2b869a853599baea8e /activerecord/test/config.example.yml | |
parent | 39ea2b09edcf8179fe69808424d325612194d4cb (diff) | |
download | rails-8de32bb25295787b68d307c74e50462cd99e6ecc.tar.gz rails-8de32bb25295787b68d307c74e50462cd99e6ecc.tar.bz2 rails-8de32bb25295787b68d307c74e50462cd99e6ecc.zip |
Document scoping issue with Time.use_zone
The Time.use_zone method will only affect ActiveSupport::TimeWithZone
instances created inside of the block passed to Time.use_zone. This
could be confusing when fetching a model and then reading the attribute
before the block and it not changing afterwards because Active Record
caches the conversion from the database value.
Since changing the behavior of Active Record to recreate the value on
every attribute read is an expensive operation the best we can do is
to document the issue.
Fixes #23195.
[ci skip]
Diffstat (limited to 'activerecord/test/config.example.yml')
0 files changed, 0 insertions, 0 deletions