Show length of event types in new proposal drop down

This commit is contained in:
differentreality 2013-09-01 18:19:25 +03:00
parent 2314d943e1
commit 9125bafe4a
3 changed files with 18 additions and 1 deletions

View file

@ -2,4 +2,6 @@ class EventType < ActiveRecord::Base
attr_accessible :title, :length, :minimum_abstract_length, :maximum_abstract_length
belongs_to :conference
validates :length, :numericality => {:greater_than => 0}
end