Profile doesn't have a default picture now
This commit is contained in:
parent
03a270b61b
commit
057007e85e
1 changed files with 0 additions and 2 deletions
|
@ -28,8 +28,6 @@ class Profile < ApplicationRecord
|
|||
|
||||
has_one_attached :picture
|
||||
has_one_attached_with_sizes(:picture, {normal: 150, medium:100, tiny: 50})
|
||||
has_one_attached_with_default(:picture, Image::DefaultProfileUrl,
|
||||
filename: "picture_#{SecureRandom.uuid}#{Pathname.new(Image::DefaultProfileUrl).extname}")
|
||||
|
||||
belongs_to :user
|
||||
has_many :activities # Activities this profile has created
|
||||
|
|
Loading…
Reference in a new issue