|
|
|
@ -265,6 +265,7 @@ class QuestionBanksController < ApplicationController
|
|
|
|
|
# exercise.update_column(:quotes, exercise.quotes+1)
|
|
|
|
|
# end
|
|
|
|
|
new_exercise if new_exercise.save!
|
|
|
|
|
exercise.update_column(:quotes, exercise.quotes+1)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -292,6 +293,7 @@ class QuestionBanksController < ApplicationController
|
|
|
|
|
# poll.update_column(:quotes, poll.quotes+1)
|
|
|
|
|
# end
|
|
|
|
|
new_poll if new_poll.save!
|
|
|
|
|
poll.update_column(:quotes, poll.quotes+1)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|