]> source.dussan.org Git - redmine.git/commitdiff
gantt: code layout cleanup initialize method of lib/redmine/helpers/gantt.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 10 Sep 2012 11:54:49 +0000 (11:54 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 10 Sep 2012 11:54:49 +0000 (11:54 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10342 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index 9bbff625efdcde022025a90ed4b64c0a4213faf1..65747fb586ced797952ea754b4a7270e6e77e208 100644 (file)
@@ -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