diff options
author | Pan Thomakos <pan.thomakos@gmail.com> | 2012-07-10 17:10:23 -0700 |
---|---|---|
committer | Pan Thomakos <pan.thomakos@gmail.com> | 2012-08-04 16:13:03 -0700 |
commit | b530fd1083c0dc71606e13c30bf0b713ad416213 (patch) | |
tree | 6e708492caa7539db109a948edabda49f547671f /activerecord | |
parent | c5807728d52c98b76e9badd95093471044b98d07 (diff) | |
download | rails-b530fd1083c0dc71606e13c30bf0b713ad416213.tar.gz rails-b530fd1083c0dc71606e13c30bf0b713ad416213.tar.bz2 rails-b530fd1083c0dc71606e13c30bf0b713ad416213.zip |
Refactored common date and time calculations.
* Added the `DateAndTime::Calculations` module that is included in Time
and Date. It houses common calculations to reduce duplicated code.
* Simplified and cleaned-up the calculation code.
* Removed duplication in tests by adding a behavior module for shared
tests. I also added some missing tests.
Diffstat (limited to 'activerecord')
0 files changed, 0 insertions, 0 deletions