new method was dead code. @questions_conference was dead variable. assignment of question's foreign key was unnecessary. fixes in type of flash messages.
9 lines
194 B
Ruby
9 lines
194 B
Ruby
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
factory :qanswer do
|
|
question
|
|
answer
|
|
registrations { [create(:registration)] }
|
|
end
|
|
end
|