Sha256: 7946bb765faab93e834b1d262d41a97b5c4934667a8789a25fa2c2f8c468fd55
Contents?: true
Size: 880 Bytes
Versions: 5
Compression:
Stored size: 880 Bytes
Contents
# frozen_string_literal: true module DateBook module ApplicationHelper def date_book_scripts render partial: 'layouts/date_book_scripts' end def render_date_range(start_date, end_date, all_day, duration) render partial: 'date_book/application/date_range', locals: { start_date: start_date, end_date: end_date, all_day: all_day, duration: duration } end def render_date(date, all_day = false) format = if all_day :human_date else :human_datetime end I18n.localize date, format: format end def render_time(date) I18n.localize date, format: :human_time end def render_all_day_checkbox(schedule) render partial: 'date_book/application/all_day_checkbox', locals: { schedule: schedule } end end end
Version data entries
5 entries across 5 versions & 1 rubygems