mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-27 17:19: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
|
end
|
||||||
|
|
||||||
def profile_image_size
|
def profile_image_size
|
||||||
if profile_image.attached? && profile_image.byte_size > 5.megabytes
|
if profile_image.attached? && profile_image.byte_size > 10.megabytes
|
||||||
errors.add(:profile_image, :invalid_file_size, max_megabytes: 5)
|
errors.add(:profile_image, :invalid_file_size, max_megabytes: 10)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue