diff options
author | Go MAEDA <maeda@farend.jp> | 2024-08-25 05:08:12 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-08-25 05:08:12 +0000 |
commit | b1767ab637764fa22213e5e5e57041bdec8ca16d (patch) | |
tree | 833ecf4a1dde6e2fc9cc0d15de2cc7c80e4e0e5f /lib/redmine/wiki_formatting.rb | |
parent | 9c2bcfea29265cd10446bcfbd4cb206e18c91f4f (diff) | |
download | redmine-b1767ab637764fa22213e5e5e57041bdec8ca16d.tar.gz redmine-b1767ab637764fa22213e5e5e57041bdec8ca16d.zip |
Fix RuboCop offense Rails/PluralizationGrammar (#39889).
git-svn-id: https://svn.redmine.org/redmine/trunk@22985 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting.rb')
-rw-r--r-- | lib/redmine/wiki_formatting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb index 558d3e117..ce6097646 100644 --- a/lib/redmine/wiki_formatting.rb +++ b/lib/redmine/wiki_formatting.rb @@ -88,7 +88,7 @@ module Redmine def to_html(format, text, options = {}) text = - if Setting.cache_formatted_text? && text.size > 2.kilobyte && cache_store && + if Setting.cache_formatted_text? && text.size > 2.kilobytes && cache_store && cache_key = cache_key_for(format, text, options[:object], options[:attribute]) # Text retrieved from the cache store may be frozen # We need to dup it so we can do in-place substitutions with gsub! |