Module: ArchiveHelper

Defined in:
app/helpers/archive_helper.rb

Instance Method Summary collapse

Instance Method Details

#archive_date_classes(date) ⇒ Object


2
3
4
5
6
7
8
9
10
# File 'app/helpers/archive_helper.rb', line 2

def archive_date_classes(date)
  classes = [:date]

  classes << :holiday if holiday? date
  classes << :disabled if date.future?
  classes << :today if date.today?

  classes.join ' '
end