Joined May 2011
·
Achievements
30 Karma
0 Total ProTip Views
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Charity
Fork and commit to someone's open source project in need
You could probably make this a bit more readable and shorter if you called
I18n.t("date_range.#{format}.#{date_format}", dates)
at the end, once, and created a dates hash with the dates before hand.Also, you use things like
from_date.day
after having already defined a variablefrom_day
.