mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #55 from ChrisBr/fix_validation_for_deprecated_events
Adds allow_nil for media_type validation for backward compatibility
This commit is contained in:
commit
535da1769d
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