From abcfbd9c7524288b85d23c8be4a75ab95d922df1 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 10 Sep 2012 11:55:13 +0000 Subject: [PATCH] gantt: code layout cleanup params* method of lib/redmine/helpers/gantt.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10343 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 65747fb58..7f32f07df 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -81,15 +81,20 @@ module Redmine end def params - common_params.merge({ :zoom => zoom, :year => year_from, :month => month_from, :months => months }) + common_params.merge({:zoom => zoom, :year => year_from, + :month => month_from, :months => months}) end def params_previous - common_params.merge({:year => (date_from << months).year, :month => (date_from << months).month, :zoom => zoom, :months => months }) + common_params.merge({:year => (date_from << months).year, + :month => (date_from << months).month, + :zoom => zoom, :months => months}) end def params_next - common_params.merge({:year => (date_from >> months).year, :month => (date_from >> months).month, :zoom => zoom, :months => months }) + common_params.merge({:year => (date_from >> months).year, + :month => (date_from >> months).month, + :zoom => zoom, :months => months}) end # Returns the number of rows that will be rendered on the Gantt chart