mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Increase profile image size limit
This commit is contained in:
parent
4aba9d1c0b
commit
e3ef1dd6b4
1 changed files with 2 additions and 2 deletions
|
@ -129,8 +129,8 @@ class User < ApplicationRecord
|
|||
end
|
||||
|
||||
def 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)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue