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



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

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

#moreObject



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

def more
  Event.after_date(future_cutoff_date).first
end

#tagsObject



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

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

#todayObject



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

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

#tomorrowObject



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

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