1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib
Andrew White 8de32bb252 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]
2016-01-23 15:01:55 +00:00
..
active_support Document scoping issue with Time.use_zone 2016-01-23 15:01:55 +00:00
active_support.rb Update copyright notices to 2016 [ci skip] 2015-12-31 18:27:19 +02:00