Commit c7b2598a66965a2e47888b65ead88236e0077a94

Authored by Nathan Broadbent
1 parent 1a557958
Exists in master and in 1 other branch production

Use .to_s in deploy calendar generator, just in case a deploy has missing info

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
app/helpers/application_helper.rb
... ... @@ -7,12 +7,12 @@ module ApplicationHelper
7 7 RiCal.Calendar do |cal|
8 8 deploys.each_with_index do |deploy,idx|
9 9 cal.event do |event|
10   - event.summary = "#{idx+1} #{deploy.repository}"
11   - event.description = deploy.revision
  10 + event.summary = "#{idx+1} #{deploy.repository.to_s}"
  11 + event.description = deploy.revision.to_s
12 12 event.dtstart = deploy.created_at
13 13 event.dtend = deploy.created_at + 60.minutes
14   - event.location = deploy.environment
15   - event.organizer = deploy.username
  14 + event.location = deploy.environment.to_s
  15 + event.organizer = deploy.username.to_s
16 16 end
17 17 end
18 18 end.to_s
... ...