Class: Refinery::Calendar::Event
- Inherits:
-
Refinery::Core::BaseModel
- Object
- Refinery::Core::BaseModel
- Refinery::Calendar::Event
- Extended by:
- FriendlyId
- Defined in:
- app/models/refinery/calendar/event.rb
Class Method Summary collapse
Class Method Details
.archive ⇒ Object
30 31 32 |
# File 'app/models/refinery/calendar/event.rb', line 30 def archive where('refinery_calendar_events.from < ?', Time.now) end |
.featured ⇒ Object
26 27 28 |
# File 'app/models/refinery/calendar/event.rb', line 26 def featured where(:featured => true) end |
.upcoming ⇒ Object
22 23 24 |
# File 'app/models/refinery/calendar/event.rb', line 22 def upcoming where('refinery_calendar_events.from >= ?', Time.now) end |