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
+1 -1
View File
@@ -70,7 +70,7 @@ module Qwaiter
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
config.time_zone = 'UTC'
#config.time_zone = 'UTC'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
+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
+1 -1
View File
@@ -116,7 +116,7 @@ en:
<li>Select the products you want</li>
<li>Click the order products button</li>
</ul>
Now your order is sent behind the bar.<br><br>
Now your order is received behind the bar.<br><br>
Feedback of your order is given by one or two checks next to your order.
feedback:
title: Feedback