diff options
author | Go MAEDA <maeda@farend.jp> | 2023-12-20 07:16:35 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-12-20 07:16:35 +0000 |
commit | d9ef2d191cdb3d04508530275bc99c3710820fcb (patch) | |
tree | 72d676c6332c4add4fe6b276c0085f247c0f2e22 /lib/redmine | |
parent | c51e4937e7c7abafec00c883f3d7e45e53e5175f (diff) | |
download | redmine-d9ef2d191cdb3d04508530275bc99c3710820fcb.tar.gz redmine-d9ef2d191cdb3d04508530275bc99c3710820fcb.zip |
Fix RuboCop offense Lint/SymbolConversion (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22531 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/activity/fetcher.rb | 2 | ||||
-rw-r--r-- | lib/redmine/i18n.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/activity/fetcher.rb b/lib/redmine/activity/fetcher.rb index 9fc914a58..54c177586 100644 --- a/lib/redmine/activity/fetcher.rb +++ b/lib/redmine/activity/fetcher.rb @@ -45,7 +45,7 @@ module Redmine options = provider.activity_provider_options[event_type] permission = options[:permission] unless options.key?(:permission) - permission ||= "view_#{event_type}".to_sym + permission ||= :"view_#{event_type}" end if permission keep |= projects.any? {|p| @user.allowed_to?(permission, p)} diff --git a/lib/redmine/i18n.rb b/lib/redmine/i18n.rb index 5421c45d5..8434cd9be 100644 --- a/lib/redmine/i18n.rb +++ b/lib/redmine/i18n.rb @@ -43,7 +43,7 @@ module Redmine end def l_or_humanize(s, options={}) - k = "#{options[:prefix]}#{s}".to_sym + k = :"#{options[:prefix]}#{s}" ::I18n.t(k, :default => s.to_s.humanize) end |