Sha256: d08dc5a87ece7d3481d6402622e481c2d498414af7d2f21d8498ac31c1e6e5b1
Contents?: true
Size: 579 Bytes
Versions: 11
Compression:
Stored size: 579 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings # Exposes the meeting resources as an .ics file so users can import them # to their favorite calendar app class CalendarsController < Decidim::Meetings::ApplicationController layout false helper_method :meetings before_action :set_default_request_format def show render plain: CalendarRenderer.for(current_component), content_type: "type/calendar" end private def set_default_request_format request.format = :text end end end end
Version data entries
11 entries across 11 versions & 1 rubygems