refinerycms-events 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/events_helper.rb +1 -1
- metadata +1 -1
@@ -52,7 +52,7 @@ module EventsHelper
|
|
52
52
|
def event_list(options = Hash.new)
|
53
53
|
grouped_events = Event.
|
54
54
|
all(:limit => options.fetch(:limit) { 10 }, :order => 'start_at ASC',
|
55
|
-
:conditions => [ 'start_at >= ?
|
55
|
+
:conditions => [ 'start_at >= ? OR end_at >= ?', Time.now, Time.now ]).
|
56
56
|
group_by { |e| e.start_at.to_date }
|
57
57
|
|
58
58
|
render(:partial => '/events/event_list',
|