This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |