summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-08-25 05:08:12 +0000
committerGo MAEDA <maeda@farend.jp>2024-08-25 05:08:12 +0000
commitb1767ab637764fa22213e5e5e57041bdec8ca16d (patch)
tree833ecf4a1dde6e2fc9cc0d15de2cc7c80e4e0e5f /lib/redmine/wiki_formatting.rb
parent9c2bcfea29265cd10446bcfbd4cb206e18c91f4f (diff)
downloadredmine-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.rb2
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!