igorkasyanchuk / rails_performance

Monitor performance of you Rails applications (self-hosted and free)
https://www.railsjazz.com/
MIT License
957 stars 54 forks source link

Fix days calculation #4

Closed synth closed 4 years ago

synth commented 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

igorkasyanchuk commented 4 years ago

thanks

igorkasyanchuk commented 4 years ago

Merged, released, and pushed new version: rails_performance-0.9.2.gem