1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/cache
Edouard CHIN f08bf726d3 Return a copy of the cache entry when local_cache exists:
- When the local cache exists (during the request lifecycle), the
  entry returned from the LocalStore is passed as a reference which
  means mutable object can accidentaly get modified.

  This behaviour seems unnecessarily unsafe and is prone to
  issues like it happened in our application.

  This patch dup the `Entry` returned from the cache and dup it's
  internal value.
2019-07-11 16:35:14 +02:00
..
behaviors Return a copy of the cache entry when local_cache exists: 2019-07-11 16:35:14 +02:00
stores Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
behaviors.rb Add missing instrumentation to RedisCacheStore#read_multi 2018-02-05 11:57:14 -08:00
cache_entry_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
cache_key_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
cache_store_logger_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
cache_store_namespace_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
cache_store_setting_test.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
local_cache_middleware_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00