Q:
Hi there, I noticed the following:
This query:
AvailabilityUpdate.where(hotel_id: "AT_INN_BINDERS").only(:timestamp).limit(1).entries.first.timestamp| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
| -# https://johnbeatty.co/2018/03/09/stimulus-js-tutorial-how-do-i-drag-and-drop-items-in-a-list/ | |
| .grid--draggable{ 'data-controller': 'seating-plan', | |
| 'data-seating-plan-endpoint': endpoint, | |
| 'data-action': 'dragstart->seating-plan#onDragStart dragover->seating-plan#onDragOver dragenter->seating-plan#onDragEnter drop->seating-plan#onDrop dragend->seating-plan#onDragEnd' } | |
| - seating_plan.each do |seat| | |
| - if seat[:is_empty] | |
| .grid__item.grid__item--empty{ 'data-row': seat[:row], | |
| 'data-col': seat[:col], | |
| style: "grid-row: #{seat[:row]}; grid-column: #{seat[:col]};", | |
| class: ('grid__item--border' if seat[:is_border]) } |
| // Run this script when using InDesign for web/mobile/tablet comps | |
| // Calculates zoom based on 72ppi, so 100% shows pixel-perfect sizing | |
| app.generalPreferences.customMonitorPpi = 72; | |
| app.generalPreferences.useCustomMonitorResolution = true; |