Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `.github/workflows/build-image.yml`: Upstream attempted something with tags. Kept our version.
This commit is contained in:
commit
b9aa228c54
8 files changed
+33
-7
No files matched your search
@@ -24,7 +24,7 @@ module Attachmentable
|
||||
def self.has_attached_file(name, options = {}) # rubocop:disable Naming/PredicateName
|
||||
super(name, options)
|
||||
|
||||
send(:"before_#{name}_validate") do
|
||||
send(:"before_#{name}_validate", prepend: true) do
|
||||
attachment = send(name)
|
||||
check_image_dimension(attachment)
|
||||
set_file_content_type(attachment)
|
||||
|
||||
Reference in new issue
Block a user