removed after_create callback for answers since no longer is needed after introducing transactions. DMPRoadmap/roadmap#893
unit test for answer#is_valid?. DMPRoadmap/roadmap#893

answer#update based on current_user. input text for answer based on either answer.text or question.default_text. DMPRoadmap/roadmap#893

renamed answers#update to answers#create_or_update and added new tests. DMPRoadmap/roadmap#893
dev
1 parent cb95854 commit ea5cfbcb646b1295525e2517ff1aa3098cb04c9b
@Jose Lloret Jose Lloret authored on 5 Dec 2017
Showing 13 changed files
View
app/controllers/answers_controller.rb
View
app/models/answer.rb
View
app/models/plan.rb
View
app/policies/answer_policy.rb
View
app/views/answers/_new_edit.html.erb
View
app/views/answers/_status.html.erb
View
app/views/phases/_edit_plan_answers.html.erb
View
app/views/questions/_new_edit_question_textarea.html.erb
View
app/views/questions/_new_edit_question_textfield.html.erb
View
config/routes.rb
View
test/functional/answers_controller_test.rb
View
test/integration/answer_locking_test.rb
View
test/unit/answer_test.rb