diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-10 11:54:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-10 11:54:49 +0000 |
commit | d0ca8eb703185daf8374c0834463312fbb25beb1 (patch) | |
tree | e75fa5e8f8c1378c4117d814e8b8c3bb6c5d6166 /lib | |
parent | e637c1566089027d6b9a913d1f397127e9d6b28b (diff) | |
download | redmine-d0ca8eb703185daf8374c0834463312fbb25beb1.tar.gz redmine-d0ca8eb703185daf8374c0834463312fbb25beb1.zip |
gantt: code layout cleanup initialize method of lib/redmine/helpers/gantt.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10342 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 9bbff625e..65747fb58 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -57,7 +57,8 @@ module Redmine months = (options[:months] || User.current.pref[:gantt_months]).to_i @months = (months > 0 && months < 25) ? months : 6 # Save gantt parameters as user preference (zoom and months count) - if (User.current.logged? && (@zoom != User.current.pref[:gantt_zoom] || @months != User.current.pref[:gantt_months])) + if (User.current.logged? && (@zoom != User.current.pref[:gantt_zoom] || + @months != User.current.pref[:gantt_months])) User.current.pref[:gantt_zoom], User.current.pref[:gantt_months] = @zoom, @months User.current.preference.save end |