1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/models/i_calendar.rb
2019-12-02 15:53:24 +01:00

16 lines
316 B
Ruby

# frozen_string_literal: true
# iCalendar (RFC 5545) files, stored by URL and kept with their display configuration
class ICalendar < ActiveRecord::Base
has_many :i_calendar_events
after_create sync_events
private
def sync_events
worker = ICalendarImportWorker.new
worker.perform([id])
end
end