Sha256: 3c978ea6b2c67aa9accbd2d9e6bc6e68d478d47cae0383a69cd7119c665eb256

Contents?: true

Size: 288 Bytes

Versions: 10

Compression:

Stored size: 288 Bytes

Contents

class CalendarDate extends Spine.Model
  @configure 'CalendarDate', 'element', 'date', 'active'

  @deactivateAllDates: () ->
    CalendarDate.each((date) -> date.updateAttributes(active: false))

  toPath: () ->
    moment(@date).format('YYYY/MM/DD')

window.CalendarDate = CalendarDate

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
event_cal-2.0.2 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-2.0.1 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-2.0.0 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-1.3.0 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-1.2.5 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-1.2.4 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-1.2.3 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-1.2.2 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-1.2.1 vendor/assets/javascripts/models/calendarDate.js.coffee
event_cal-1.2 vendor/assets/javascripts/models/calendarDate.js.coffee