Commit 7f57dd21fe9cda2d51a23944cd29fb5608d9098f

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

personal pref for '}.to_s' over 'end.to_s'

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -4,7 +4,7 @@ module ApplicationHelper @@ -4,7 +4,7 @@ module ApplicationHelper
4 end 4 end
5 5
6 def generate_ical(deploys) 6 def generate_ical(deploys)
7 - RiCal.Calendar do |cal| 7 + RiCal.Calendar { |cal|
8 deploys.each_with_index do |deploy,idx| 8 deploys.each_with_index do |deploy,idx|
9 cal.event do |event| 9 cal.event do |event|
10 event.summary = "#{idx+1} #{deploy.repository.to_s}" 10 event.summary = "#{idx+1} #{deploy.repository.to_s}"
@@ -15,7 +15,7 @@ module ApplicationHelper @@ -15,7 +15,7 @@ module ApplicationHelper
15 event.organizer = deploy.username.to_s 15 event.organizer = deploy.username.to_s
16 end 16 end
17 end 17 end
18 - end.to_s 18 + }.to_s
19 end 19 end
20 20
21 def user_agent_graph(problem) 21 def user_agent_graph(problem)