Sha256: f6fbb96cdc8864acc6e61adfd169742a331f41bbbdd50b1a781b0000ca83d51b
Contents?: true
Size: 388 Bytes
Versions: 12
Compression:
Stored size: 388 Bytes
Contents
class CalendarEvent extends Spine.Model @configure 'CalendarEvent', 'held_on', 'active', 'element' @activateAllEventsOn: (date) -> for event in CalendarEvent.findAllByAttribute('held_on', date) event.updateAttributes(active: true) @deactivateAllEvents: () -> CalendarEvent.each((event) -> event.updateAttributes(active: false)) window.CalendarEvent = CalendarEvent
Version data entries
12 entries across 12 versions & 1 rubygems