Changes consistent with the core
This commit is contained in:
parent
a105d824b4
commit
c817a8f522
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue