Introduce strong parameters
This commit is contained in:
parent
38bc2e3c3a
commit
355ecc0ac6
93 changed files with 172 additions and 241 deletions
|
|
@ -1,8 +1,5 @@
|
|||
class CallForPaper < ActiveRecord::Base
|
||||
belongs_to :conference
|
||||
attr_accessible :start_date, :end_date,
|
||||
:schedule_changes, :rating,
|
||||
:schedule_public, :include_cfp_in_splash, :conference_id
|
||||
|
||||
validates_presence_of :start_date, :end_date
|
||||
validates :rating, numericality: { greater_than_or_equal_to: 0, less_than_or_equal_to: 10 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue