allow stars from 1 to 10, 1 star being the default

This commit is contained in:
differentreality 2013-09-02 15:58:09 +03:00
parent e3828c0a74
commit aaa77bb893
2 changed files with 2 additions and 2 deletions

View file

@ -3,6 +3,6 @@ class CallForPapers < ActiveRecord::Base
belongs_to :conference
validates_presence_of :start_date, :end_date, :hard_deadline
validates :rating, :numericality => { :greater_than_or_equal_to => 2, :less_than_or_equal_to => 10 }
validates :rating, :numericality => { :greater_than_or_equal_to => 1, :less_than_or_equal_to => 10 }
end