|
|
@ -264,8 +264,9 @@ class QuestionBanksController < ApplicationController
|
|
|
|
# new_exercise.create_exercise_list
|
|
|
|
# new_exercise.create_exercise_list
|
|
|
|
# exercise.update_column(:quotes, exercise.quotes+1)
|
|
|
|
# exercise.update_column(:quotes, exercise.quotes+1)
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
new_exercise if new_exercise.save!
|
|
|
|
new_exercise.save!
|
|
|
|
exercise.update_column(:quotes, exercise.quotes+1)
|
|
|
|
exercise.update_column(:quotes, exercise.quotes+1)
|
|
|
|
|
|
|
|
new_exercise
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -292,8 +293,9 @@ class QuestionBanksController < ApplicationController
|
|
|
|
# new_poll.create_polls_list
|
|
|
|
# new_poll.create_polls_list
|
|
|
|
# poll.update_column(:quotes, poll.quotes+1)
|
|
|
|
# poll.update_column(:quotes, poll.quotes+1)
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
new_poll if new_poll.save!
|
|
|
|
new_poll.save!
|
|
|
|
poll.update_column(:quotes, poll.quotes+1)
|
|
|
|
poll.update_column(:quotes, poll.quotes+1)
|
|
|
|
|
|
|
|
new_poll
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|