Module: EventsHelper
- Defined in:
- app/helpers/events_helper.rb
Instance Method Summary collapse
Instance Method Details
#event_class(day) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/events_helper.rb', line 2 def event_class(day) [].tap { |css| css << if day < Date.today "past" elsif day == Date.today "today" elsif day.month != Date.today.month "next_month" end #TODO: event ocurrence }.join(" ") end |