class Decidim::Meetings::Calendar::ComponentCalendar
format. It caches its result until the component is updated again.
This class handles how to convert a component meetings to the ICalendar
def events
Rails' cache.
Renders the meetings in an ICalendar format. It caches the results in
def events filtered_meetings.map do |meeting| MeetingCalendar.new(meeting).events end.compact.join end
def filtered_meetings
Finds the component meetings.
def filtered_meetings meetings.not_hidden.published.except_withdrawn.ransack(@filters).result end
def meetings
Finds the component meetings.
def meetings Decidim::Meetings::Meeting.where(component: component) end