Sha256: 5fe64d4d6f62549330da9490b7a7a04b824fbfd934ac76374bd4dcb3c3ad3b8b
Contents?: true
Size: 305 Bytes
Versions: 6
Compression:
Stored size: 305 Bytes
Contents
module EventsHelper 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 end
Version data entries
6 entries across 6 versions & 4 rubygems