aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/xml_mini/nokogiri_engine_test.rb
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 /activesupport/test/xml_mini/nokogiri_engine_test.rb
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 'activesupport/test/xml_mini/nokogiri_engine_test.rb')
0 files changed, 0 insertions, 0 deletions