Skip to content

Commit fd90203

Browse files
authored
Merge pull request #1126 from rughh/feat/add_location_address_to_ical_location
feat: add location address to ical location
2 parents 996873a + f3c9ebb commit fd90203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/ical_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def icalendar(*events)
1010
item.dtstart = Icalendar::Values::DateTime.new event.date.utc, tzid: 'UTC'
1111
item.dtend = Icalendar::Values::DateTime.new event.end_date.utc, tzid: 'UTC'
1212
item.url = event_url(event)
13-
item.location = event.location.name if event.location
13+
item.location = [event.location.name, event.location.address].compact.join(',') if event.location
1414
end
1515
end
1616
cal.to_ical

0 commit comments

Comments
 (0)