Skip to content

Commit

Permalink
Update app/models/site.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Brousse <[email protected]>
  • Loading branch information
B-Rass and nicolas-brousse committed Oct 29, 2024
1 parent b215eb5 commit 60c5242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Site < ApplicationRecord

has_one_attached :delivery_map

validates :delivery_map, content_type: [:png, :jpg, :jpeg, :pdf, :gif]
validates :delivery_map, content_type: %i[png jpg jpeg pdf gif]

geocoded_by :address
after_validation :geocode
Expand Down

0 comments on commit 60c5242

Please sign in to comment.