vendor/assets/javascripts/models/calendarDate.js.coffee in event_cal-1.1 vs vendor/assets/javascripts/models/calendarDate.js.coffee in event_cal-1.2
- old
+ new
@@ -2,6 +2,9 @@
@configure 'CalendarDate', 'element', 'date', 'active'
@deactivateAllDates: () ->
CalendarDate.each((date) -> date.updateAttributes(active: false))
+ toPath: () ->
+ moment(@date).format('YYYY/MM/DD')
+
window.CalendarDate = CalendarDate