Remove attr_accessible from Program and Cfp, final fixes after introducing strong params
This commit is contained in:
parent
62a7e724a2
commit
a0d045e156
8 changed files with 95 additions and 105 deletions
|
|
@ -3,8 +3,6 @@
|
|||
class Cfp < ActiveRecord::Base
|
||||
belongs_to :program
|
||||
|
||||
attr_accessible :start_date, :end_date, :program_id
|
||||
|
||||
validates :program_id, presence: true, uniqueness: true
|
||||
validates :start_date, :end_date, presence: true
|
||||
validate :before_end_of_conference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue