aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2017-03-15 14:38:21 +0000
committerAndrew White <andrew.white@unboxed.co>2017-03-15 14:56:27 +0000
commita91ea1d51048342d13fc73f9b09ce4cfd086bb34 (patch)
treeff81c34c965633f128f08fede00dd43b038ba0b3 /actionmailer/test
parente79a991ccfdf3b7b56562be35b996e61d7395861 (diff)
downloadrails-a91ea1d51048342d13fc73f9b09ce4cfd086bb34.tar.gz
rails-a91ea1d51048342d13fc73f9b09ce4cfd086bb34.tar.bz2
rails-a91ea1d51048342d13fc73f9b09ce4cfd086bb34.zip
Remove implicit coercion deprecation of durations
In #28204 we deprecated implicit conversion of durations to a numeric which represented the number of seconds in the duration because of unwanted side effects with calculations on durations and dates. This unfortunately had the side effect of forcing a explicit cast when configuring third-party libraries like expiration in Redis, e.g: redis.expire("foo", 5.minutes) To work around this we've removed the deprecation and added a private class that wraps the numeric and can perform calculation involving durations and ensure that they remain a duration irrespective of the order of operations.
Diffstat (limited to 'actionmailer/test')
0 files changed, 0 insertions, 0 deletions