FIX: bump default max for int site settings to a much higher number

(close to long int)
This commit is contained in:
Sam 2017-08-24 10:16:41 -04:00
parent d52048ad34
commit fdc5c080ea

View File

@ -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)