From c817a8f522bf16a0d2f75598d9d80e0877f6a0ae Mon Sep 17 00:00:00 2001 From: junyi Date: Mon, 31 Aug 2026 10:21:18 +0000 Subject: [PATCH] Changes consistent with the core --- config/initializers/rucaptcha.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/rucaptcha.rb b/config/initializers/rucaptcha.rb index 43f3e8c..bdf88e6 100644 --- a/config/initializers/rucaptcha.rb +++ b/config/initializers/rucaptcha.rb @@ -9,9 +9,9 @@ RuCaptcha.configure do # But RuCaptcha requirements cache_store not in [:null_store, :memory_store, :file_store] # 默認:會從 Rails 配置的 cache_store 里面讀取相同的配置信息,並嘗試用可以運行的方式,用於存儲驗證碼字符 # 但如果是 [:null_store, :memory_store, :file_store] 之类的,你可以通過下面的配置項單獨給 RuCaptcha 配置 cache_store - self.cache_store = :file_store + self.cache_store = [:file_store, Rails.root.join('tmp', 'cache', 'rucaptcha', 'session').to_s] # 如果想要 disable cache_store 的 warning,就設置為 true,default false - # self.skip_cache_store_check = true + self.skip_cache_store_check = true # Chars length, default: 5, allows: [3 - 7] # self.length = 5 # enable/disable Strikethrough.