Remove dash from regex for short_title format validation.
This commit is contained in:
parent
c822d65010
commit
1d4140099f
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class Conference < ActiveRecord::Base
|
|||
:end_date
|
||||
|
||||
validates_uniqueness_of :short_title
|
||||
validates_format_of :short_title, with: /\A[a-zA-Z0-9_-]*\z/
|
||||
validates_format_of :short_title, with: /\A[a-z0-9_]*\z/
|
||||
validates :registration_limit, numericality: { only_integer: true, greater_than_or_equal_to: 0 }
|
||||
|
||||
# This validation is needed since a conference with a start date greater than the end date is not possible
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue