Time dependant product categories for users

This commit is contained in:
2015-01-22 17:49:32 +01:00
parent f434b53161
commit 36525849bd
24 changed files with 9981 additions and 46 deletions
+12
View File
@@ -0,0 +1,12 @@
class Date
# return the lowercased day name in English of the date object eg: monday or friday etc
def day_name
Date::DAYNAMES[wday].downcase
end
end
class Time
def minute_of_day
60 * hour + min
end
end