🚨Fix Rubocop lint errors
This commit is contained in:
@@ -9,13 +9,13 @@ class AttachmentUploader < CarrierWave::Uploader::Base
|
||||
end
|
||||
end
|
||||
|
||||
version :thumb, :if => :image? do
|
||||
process resize_to_fill: [280,280]
|
||||
version :thumb, if: :image? do
|
||||
process resize_to_fill: [280, 280]
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def image?(new_file)
|
||||
model.image?
|
||||
end
|
||||
def image?(_new_file)
|
||||
model.image?
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,11 +10,10 @@ class AvatarUploader < CarrierWave::Uploader::Base
|
||||
end
|
||||
|
||||
version :thumb do
|
||||
process resize_to_fill: [64,64]
|
||||
process resize_to_fill: [64, 64]
|
||||
end
|
||||
|
||||
version :profile_thumb do
|
||||
process resize_to_fill: [128,128]
|
||||
process resize_to_fill: [128, 128]
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user