mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Adds allow_nil for media_type validation for backward compatibility
This commit is contained in:
parent
628211f0fc
commit
cd4107bf0d
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class Event < ActiveRecord::Base
|
|||
validate :biography_exists
|
||||
validates :title, :presence => true
|
||||
validates :abstract, :presence => true
|
||||
validates :media_type, inclusion: {in: self.media_types.values}
|
||||
validates :media_type, :allow_nil => true, inclusion: {in: self.media_types.values}
|
||||
|
||||
scope :confirmed, where(:state => "confirmed")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue