mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
FIX: bump default max for int site settings to a much higher number
(close to long int)
This commit is contained in:
parent
d52048ad34
commit
fdc5c080ea
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@ class IntegerSettingValidator
|
|||
def initialize(opts = {})
|
||||
@opts = opts
|
||||
@opts[:min] = 0 unless @opts[:min].present? || @opts[:hidden]
|
||||
@opts[:max] = 20000 unless @opts[:max].present? || @opts[:hidden]
|
||||
# set max closer to a long int
|
||||
@opts[:max] = 2_000_000_000 unless @opts[:max].present? || @opts[:hidden]
|
||||
end
|
||||
|
||||
def valid_value?(val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue