Skip to content

Commit

Permalink
Rubocop linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Estete9 committed Feb 24, 2024
1 parent 6d51749 commit 2508d43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/car.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ class Car < ApplicationRecord
validates :description, presence: true, length: { minimum: 10, maximum: 255 }
validate :car_image_attached

def set_image_url
self.image_url = Rails.root.join("public", car_image.blob.key).to_s
def set_image_url
self.image_url = Rails.root.join('public', car_image.blob.key).to_s
end


private

def car_image_attached
Expand Down

0 comments on commit 2508d43

Please sign in to comment.