Fixed to use .megabytes

This commit is contained in:
Zanz2 2017-11-16 15:17:13 +01:00
parent e782f13a7d
commit 1b540a75a1

View file

@ -610,7 +610,7 @@ class ProtocolsController < ApplicationController
end
return 0 # return 0 stops the rest of the controller code from executing
end
if file_size > Constants::FILE_MAX_SIZE_MB * 1000000
if file_size > Constants::FILE_MAX_SIZE_MB.megabytes
@protocolsio_too_big = true
respond_to do |format|
format.js {}