Returning basic time ranges using ActiveSupport methods.
How many times you needed to return a specific time range in order to use it on a query?
Have you ever needed to use a helper method inside your controller? I did, a few…
How many minutes has passed since the beginning of this job? How many hours do we have to wait? If you’ve asked these kind of questions while programming on Ruby on Rails you’ll probably get no answer on Rails docs. But there is a solution.
Sometimes you need to support different versions of an API inside your ruby code. And, sometime, you will need to compare version strings in order to make a feature available.