Class: Calagator::Event::Overview
- Inherits:
-
Object
- Object
- Calagator::Event::Overview
- Defined in:
- app/models/calagator/event/overview.rb
Instance Method Summary collapse
Instance Method Details
#later ⇒ Object
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 |
#more ⇒ Object
17 18 19 |
# File 'app/models/calagator/event/overview.rb', line 17 def more Event.after_date(future_cutoff_date).first end |
#tags ⇒ Object
21 22 23 |
# File 'app/models/calagator/event/overview.rb', line 21 def @tags ||= Event.tag_counts_on(:tags, limit: 100, conditions: "tags_count >= 10").sort_by(&:name) end |
#today ⇒ Object
5 6 7 |
# File 'app/models/calagator/event/overview.rb', line 5 def today Event.non_duplicates.within_dates(today_date, tomorrow_date) end |
#tomorrow ⇒ Object
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 |