Class: Decidim::Meetings::CalendarsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/decidim/meetings/calendars_controller.rb

Overview

Exposes the meeting resources as an .ics file so users can import them to their favorite calendar app

Instance Method Summary collapse

Instance Method Details

#showObject



12
13
14
# File 'app/controllers/decidim/meetings/calendars_controller.rb', line 12

def show
  render plain: CalendarRenderer.for(current_component), content_type: "type/calendar"
end