The personal finance app for everyone
Increase profile image size limit
Josh Pigforde3ef1dd6b461
diff --git a/app/models/user.rb b/app/models/user.rbindex 5b163b83..f49b0d06 100644--- a/app/models/user.rb+++ b/app/models/user.rb@@ -129,8 +129,8 @@ class User < ApplicationRecordenddef profile_image_size- if profile_image.attached? && profile_image.byte_size > 5.megabytes- errors.add(:profile_image, :invalid_file_size, max_megabytes: 5)+ if profile_image.attached? && profile_image.byte_size > 10.megabytes+ errors.add(:profile_image, :invalid_file_size, max_megabytes: 10)endendend