Merge pull request #66 from CactusPuppy/177736599-program#any_event_for_this_date
Fix program#any_event_for_this_date
This commit is contained in:
commit
e340758e6e
1 changed files with 1 additions and 0 deletions
|
|
@ -195,6 +195,7 @@ class Program < ApplicationRecord
|
|||
# * +True+ -> If there is any event for the given date
|
||||
# * +False+ -> If there is not any event for the given date
|
||||
def any_event_for_this_date?(date)
|
||||
return false if date.nil? || date == ''
|
||||
return false unless selected_schedule.present?
|
||||
|
||||
parsed_date = DateTime.parse("#{date} 00:00").utc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue