aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/numeric_data_test.rb
diff options
context:
space:
mode:
authorSayan Chakraborty <mail.sayanc@gmail.com>2017-06-28 19:38:02 +0530
committerAndrew White <andrew.white@unboxed.co>2017-07-28 14:06:53 +0100
commita54e13bd2e8fb4d6aa0aebe59271699a2d62567b (patch)
treea28949c818ecdb7694faac58e3d61232fa48556f /activerecord/test/cases/numeric_data_test.rb
parentc6a28b290ab68455e55bcfddc7dd42edf4909ad8 (diff)
downloadrails-a54e13bd2e8fb4d6aa0aebe59271699a2d62567b.tar.gz
rails-a54e13bd2e8fb4d6aa0aebe59271699a2d62567b.tar.bz2
rails-a54e13bd2e8fb4d6aa0aebe59271699a2d62567b.zip
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.
Diffstat (limited to 'activerecord/test/cases/numeric_data_test.rb')
0 files changed, 0 insertions, 0 deletions