Changes consistent with the core

This commit is contained in:
junyi 2026-08-31 10:21:18 +00:00
parent a105d824b4
commit c817a8f522
1 changed files with 2 additions and 2 deletions

View File

@ -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就設置為 truedefault 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.