From 784176e6bfaccf20e5cd064d239d93b2b7a7ad7a Mon Sep 17 00:00:00 2001 From: Tylor Sherman Date: Tue, 27 Apr 2021 10:20:58 -0700 Subject: [PATCH] Update README.md Validate attachment can't be used directly --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 697181d0b..4b7b491cd 100644 --- a/README.md +++ b/README.md @@ -430,7 +430,7 @@ If you're only interested in images, restrict your allowed content_types to image-y ones: ```ruby -validates_attachment :avatar, +validates_attachment_content_type :avatar, content_type: ["image/jpeg", "image/gif", "image/png"] ```