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
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 |
#more ⇒ Object
18 19 20 |
# File 'app/models/calagator/event/overview.rb', line 18 def more Event.after_date(future_cutoff_date).first end |
#tags ⇒ Object
22 23 24 |
# File 'app/models/calagator/event/overview.rb', line 22 def @tags ||= Event.tag_counts_on(:tags, limit: 100, conditions: 'tags_count >= 10').sort_by(&:name) end |
#today ⇒ Object
6 7 8 |
# File 'app/models/calagator/event/overview.rb', line 6 def today Event.non_duplicates.within_dates(today_date, tomorrow_date) end |
#tomorrow ⇒ Object
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 |