Skip to content

Commit

Permalink
chore: Fix rubocop styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Jan 5, 2025
1 parent 5404f94 commit 65ecce8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/models/concerns/alchemy/picture_thumbnails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ def image_cropper_settings

# Show image cropping link for ingredient
def allow_image_cropping?
settings[:crop] && picture &&
picture.can_be_cropped_to?(
settings[:size],
settings[:upsample]
) && !!picture.image_file
settings[:crop] && picture&.can_be_cropped_to?(
settings[:size],
settings[:upsample]
) && !!picture.image_file
end

private
Expand Down

0 comments on commit 65ecce8

Please sign in to comment.