Class: Calagator::Event::Overview

Inherits:
Object
  • Object
show all
Defined in:
app/models/calagator/event/overview.rb

Instance Method Summary collapse

Instance Method Details

#laterObject



13
14
15
# File 'app/models/calagator/event/overview.rb', line 13

def later
  Event.non_duplicates.within_dates(after_tomorrow_date, future_cutoff_date)
end

#moreObject



17
18
19
# File 'app/models/calagator/event/overview.rb', line 17

def more
  Event.after_date(future_cutoff_date).first
end

#tagsObject



21
22
23
# File 'app/models/calagator/event/overview.rb', line 21

def tags
  @tags ||= Event.tag_counts_on(:tags, limit: 100, conditions: "tags_count >= 10").sort_by(&:name)
end

#todayObject



5
6
7
# File 'app/models/calagator/event/overview.rb', line 5

def today
  Event.non_duplicates.within_dates(today_date, tomorrow_date)
end

#tomorrowObject



9
10
11
# File 'app/models/calagator/event/overview.rb', line 9

def tomorrow
  Event.non_duplicates.within_dates(tomorrow_date, after_tomorrow_date)
end