Small evolution, to ensure event duplication is not so automatic: contact email is required
This commit is contained in:
parent
0270098533
commit
c8c3d95b40
@ -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/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user