🚨Fix Rubocop lint errors

This commit is contained in:
Pranav Raj S
2019-10-20 14:17:26 +05:30
committed by GitHub
parent dd018f3682
commit 94c6d6db6f
124 changed files with 774 additions and 914 deletions

View File

@@ -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

View File

@@ -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