no validates_attachment_file_name when upgrading to Paperclip 4.1 from 3.5
We have code that looks like run of the mill paper clip: has_merchants_attached_file :pdf, storage: :s3, s3_credentials: Mbc::DataStore.s3_credentials, s3_permissions: :private, path: ":identifier_template.pdf", bucket: Mbc::DataStore.forms_and_templates_bucket_name validates_attachment_file_name :pdf, :matches => [/pdf\Z/] Which generates an error: undefined method `validates_attachment_file_name' for #<Class:0x007fba67d25fe0> Interestingly enough, when we down grade back to 3.5, we encounter the same issue. The controller that is generating this is: def index @fidelity_templates =