app/models/tramway/event/event.rb in tramway-event-1.12.6.3 vs app/models/tramway/event/event.rb in tramway-event-1.12.6.4
- old
+ new
@@ -6,11 +6,9 @@
validate :check_dimensions
def check_dimensions
if photo.present?
errors.add :photo, :too_small_image if photo.width.present? && (photo.width < 1920 || photo.height < 1080)
- else
- errors.add :photo, :is_not_present
end
end
has_many :participants, class_name: 'Tramway::Event::Participant'
has_many :participant_form_fields, -> { order(position: :asc) }, class_name: 'Tramway::Event::ParticipantFormField'