Closed synth closed 4 years ago
Closes #4
This implements the correct way to calculate days. This simultaneously reduces the dependency on ActiveSupport::Duration#%(modulo) method.
Prior to Rails 5.2, the % method in ActiveSupport::Duration returns an integer. Whereas in 5.2+, the modulo method returns an ActiveSupport::Duration
thanks
Merged, released, and pushed new version: rails_performance-0.9.2.gem
Closes #4
This implements the correct way to calculate days. This simultaneously reduces the dependency on ActiveSupport::Duration#%(modulo) method.
Prior to Rails 5.2, the % method in ActiveSupport::Duration returns an integer. Whereas in 5.2+, the modulo method returns an ActiveSupport::Duration