mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06: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
@ -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…
Reference in New Issue
Block a user