Skip to content

Instantly share code, notes, and snippets.

# Sample localization file for English. Add more files in this directory for other locales.
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
activerecord:
attributes:
event:
course_id: "Term"
begin_time_text: "Begin date"
linked_student_ids: "Students"
module DateTimeHelpers
EMPTY_TIME = '12:00 am'
extend ActiveSupport::Concern
def begin_date_precedes_end_date
return if begin_date.nil? or end_date.nil?
if end_date < begin_date
if self.respond_to? :begin_time_text