diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-21 13:03:30 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-21 13:03:30 +0000 |
commit | c751d992265db989701aabf314b2e95fb629448b (patch) | |
tree | f950761da7e6605de1b89f44e87d53f14ee650a8 /app/helpers/settings_helper.rb | |
parent | 4599ca00aa0ae3fd663a26e922dd36ae9b31ed5a (diff) | |
download | redmine-c751d992265db989701aabf314b2e95fb629448b.tar.gz redmine-c751d992265db989701aabf314b2e95fb629448b.zip |
use "do end" instead of {} at SettingsHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@20057 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/settings_helper.rb')
-rw-r--r-- | app/helpers/settings_helper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb index 9f324f4e6..05518d21c 100644 --- a/app/helpers/settings_helper.rb +++ b/app/helpers/settings_helper.rb @@ -139,20 +139,20 @@ module SettingsHelper def session_lifetime_options options = [[l(:label_disabled), 0]] - options += [4, 8, 12].map {|hours| + options += [4, 8, 12].map do |hours| [l('datetime.distance_in_words.x_hours', :count => hours), (hours * 60).to_s] - } - options += [1, 7, 30, 60, 365].map {|days| + end + options += [1, 7, 30, 60, 365].map do |days| [l('datetime.distance_in_words.x_days', :count => days), (days * 24 * 60).to_s] - } + end options end def session_timeout_options options = [[l(:label_disabled), 0]] - options += [1, 2, 4, 8, 12, 24, 48].map {|hours| + options += [1, 2, 4, 8, 12, 24, 48].map do |hours| [l('datetime.distance_in_words.x_hours', :count => hours), (hours * 60).to_s] - } + end options end |