Scoping for periods in ActiveRecord made easy