Introduce strong parameters

This commit is contained in:
Stella Rouzi 2015-10-28 18:05:15 +02:00
parent 38bc2e3c3a
commit 355ecc0ac6
93 changed files with 172 additions and 241 deletions

View file

@ -3,7 +3,6 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
self.table_name = 'registrations'
belongs_to :temp_conference
attr_accessible :handicapped_access_required
end
class TempConference < ActiveRecord::Base
@ -16,14 +15,12 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
class TempQuestionType < ActiveRecord::Base
self.table_name = 'question_types'
attr_accessible :title
has_many :temp_questions
end
class TempQuestion < ActiveRecord::Base
self.table_name = 'questions'
attr_accessible :title, :global, :question_type_id
has_many :temp_qanswers
has_many :temp_answers, through: :temp_qanswers
belongs_to :temp_question_type
@ -33,7 +30,6 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
class TempAnswer < ActiveRecord::Base
self.table_name = 'answers'
attr_accessible :title
has_many :temp_qanswers
has_many :temp_questions, through: :temp_qanswers
end
@ -41,21 +37,16 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
class TempQanswer < ActiveRecord::Base
self.table_name = 'qanswers'
attr_accessible :question_id, :answer_id
belongs_to :temp_question
belongs_to :temp_answer
end
class TempConferencesQuestions < ActiveRecord::Base
self.table_name = 'conferences_questions'
attr_accessible :question_id, :conference_id
end
class TempQanswerRegistration < ActiveRecord::Base
self.table_name = 'qanswers_registrations'
attr_accessible :registration_id, :qanswer_id
end
def change