Small evolution, to ensure event duplication is not so automatic: contact email is required

This commit is contained in:
echarp 2014-12-21 18:29:37 +01:00
parent 0270098533
commit c8c3d95b40
2 changed files with 0 additions and 3 deletions

View File

@ -16,7 +16,6 @@ class Event < ActiveRecord::Base
validates :city, presence: true
validates :related_region, presence: true
validates :url, presence: true, format: %r{\Ahttps?:\/\/.*\..*\z}
validates :contact, presence: true
validates :contact, email: true
validates :submitter, email: true
validates :tags, presence: true, format: /\A[\p{Alnum}\s-]*\z/

View File

@ -40,8 +40,6 @@
region: @event.region,
locality: @event.locality,
url: @event.url,
contact: @event.contact,
submitter: @event.submitter,
tags: @event.tags }),
method: :post do
%em.fa.fa-copy