Add: 管理画面で特に負荷の大きい処理を無効にする環境変数 (#633)
This commit is contained in:
parent
0ed58512a1
commit
0a3007a9b0
7 changed files with 41 additions and 5 deletions
8
app/helpers/high_load_helper.rb
Normal file
8
app/helpers/high_load_helper.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HighLoadHelper
|
||||
def allow_high_load?
|
||||
ENV.fetch('ALLOW_HIGH_LOAD', 'true') == 'true'
|
||||
end
|
||||
module_function :allow_high_load?
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue