aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorSantosh Wadghule <santosh.wadghule@gmail.com>2016-04-16 16:16:17 +0530
committerSantosh Wadghule <santosh.wadghule@gmail.com>2016-04-18 20:25:16 +0530
commita712acc42543b575a623e1a8880c0e9dd5505cfa (patch)
tree9867a176a8608dbbd6179ed8a09b4a97ffc64a0f /activesupport/CHANGELOG.md
parent38d6d4129bd9a04d71b29d4c2b47419523ecff5d (diff)
downloadrails-a712acc42543b575a623e1a8880c0e9dd5505cfa.tar.gz
rails-a712acc42543b575a623e1a8880c0e9dd5505cfa.tar.bz2
rails-a712acc42543b575a623e1a8880c0e9dd5505cfa.zip
Fix forced cache miss for fetch.
- Raised an argument error if no block is passed to #fetch with 'force: true' option is set. - Added tests for the same.
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index b2ab5ffcbe..690314b59a 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,10 @@
+* Raise an argument error if no block is passed to #fetch with option
+ `force: true` is set.
+
+ cache.fetch('today', force: true) # => ArgumentError: Missing block
+
+ *Santosh Wadghule*
+
* `ActiveSupport::Duration` supports weeks and hours.
[1.hour.inspect, 1.hour.value, 1.hour.parts]