mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Prefer public_send over send.
This commit is contained in:
@@ -125,6 +125,7 @@ class Validators::UploadValidator < ActiveModel::Validator
|
||||
else
|
||||
SiteSetting.get("max_#{type}_size_kb")
|
||||
end
|
||||
|
||||
max_size_bytes = max_size_kb.kilobytes
|
||||
|
||||
if upload.filesize > max_size_bytes
|
||||
|
||||
Reference in New Issue
Block a user