Merge pull request #120 from Y-zu-don-maintenance-org/features/v4.1.4

Features/v4.1.4
This commit is contained in:
2023-07-08 23:41:57 +09:00
committed by GitHub
8 changed files with 32 additions and 6 deletions

View File

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