Skip to content

Commit

Permalink
safer ics categories...
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Nov 7, 2023
1 parent 208c931 commit 01865c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/helpers/conference_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ def icalendar_proposals(calendar, proposals, conference)
location += "#{v.country_name}, " if v.country_name
e.location = location
end
e.categories = conference.title, "Difficulty: #{proposal.difficulty_level.title}",
"Track: #{proposal.track.name}"
e.categories = conference.title
e.categories << "Difficulty: #{proposal.difficulty_level.title}" if proposal.difficulty_level.present?
e.categories << "Track: #{proposal.track.name}" if proposal.track.present?
end
end
calendar
Expand Down

0 comments on commit 01865c5

Please sign in to comment.