rails/activesupport/lib
Sayan Chakraborty a54e13bd2e Add missing support for modulo operations on durations
Rails 5.1 introduce an `ActiveSupport::Duration::Scalar` class as
a wrapper around a numeric value as a way of ensuring a duration
was the outcome of an expression. However the implementation was
missing support for modulo operations. This commit adds support
for those operations and should result in a duration being
returned from expressions involving them.

Fixes #29603 and #29743.
2017-07-28 14:06:53 +01:00
..
active_support Add missing support for modulo operations on durations 2017-07-28 14:06:53 +01:00
active_support.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00