osem-fcy/app/helpers
Asish Kumar c5e84221c2 Make iCalendar feed routes return calendar data
Both iCalendar routes were unusable:

* `/conferences/.../schedule.ics` raised
  `NoMethodError: undefined method 'icalendar_proposals'` because the
  `ConferenceHelper#icalendar_proposals` helper isn't auto-included in
  controllers; the action crashed before rendering.

* `/calendar.ics` silently redirected to `/`. The controller goes
  through `load_and_authorize_resource`, which authorises `:calendar`
  on `Conference` and is rejected for anonymous visitors because no
  ability grants it — CanCan's `AccessDenied` rescue redirects to
  root.

The helper is invoked through the controller `helpers` proxy so it
works in both contexts, and the calendar action is opted out of
resource loading and explicitly marked as not requiring authorization
since it serves a public feed across conferences. The helper is also
hardened so that proposals missing a room, difficulty level, track,
event type or scheduled time produce a valid event instead of
crashing the whole feed.
2026-05-14 11:02:49 +05:30
..
admin Select Call type when creating; don't switch types. 2018-12-19 13:18:24 -08:00
application_helper.rb Move sign_in_path into the controller it's used... 2025-08-12 18:00:45 +02:00
chart_helper.rb Use chartkick globally 2018-12-30 16:57:22 -08:00
conference_helper.rb Make iCalendar feed routes return calendar data 2026-05-14 11:02:49 +05:30
date_time_helper.rb Fix various typos 2025-10-15 11:15:47 +00:00
event_types_helper.rb Simplify min/max abstract length feature 2025-01-30 19:10:49 +01:00
events_helper.rb Autocorrect new rubocop offenses 2025-08-12 16:44:20 +02:00
format_helper.rb Drop word_pluralize helper 2025-01-30 16:21:30 +01:00
paths_helper.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
users_helper.rb Drop Rails.application.secrets usage 2025-08-12 17:27:25 +02:00
versions_helper.rb Drop Organization Feature 2024-06-07 17:42:08 +02:00