Skip to content

Commit

Permalink
#event delelte image size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
moshinaan committed Mar 15, 2020
1 parent cceff32 commit 4ba158f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tramway-event/app/models/tramway/event/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
def check_dimensions
if photo.present?
errors.add :photo, :too_small_image if photo.width < 1920 || photo.height < 1080
errors.add :photo, :image_aspect_ratio if photo.height / photo.width == 16 / 9
end
end

Expand Down

0 comments on commit 4ba158f

Please sign in to comment.