Commit 410b9cba9382c170fe941c7046651dfa72db67b4

Authored by Victor Costa
1 parent 2368cdb3

Fix event warning

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/events_helper.rb
@@ -30,7 +30,7 @@ module EventsHelper @@ -30,7 +30,7 @@ module EventsHelper
30 # the day itself 30 # the day itself
31 date, 31 date,
32 # is there any events in this date? 32 # is there any events in this date?
33 - events.any? {|event| event.date_range.include?(date)}, 33 + events.any? {|event| event.date_range.cover?(date)},
34 # is this date in the current month? 34 # is this date in the current month?
35 true 35 true
36 ] 36 ]