diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-10 11:55:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-10 11:55:13 +0000 |
commit | abcfbd9c7524288b85d23c8be4a75ab95d922df1 (patch) | |
tree | 852dc0e7b402c31612a6f65c20929706d6552100 /lib | |
parent | d0ca8eb703185daf8374c0834463312fbb25beb1 (diff) | |
download | redmine-abcfbd9c7524288b85d23c8be4a75ab95d922df1.tar.gz redmine-abcfbd9c7524288b85d23c8be4a75ab95d922df1.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 11 |
1 files 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 |