adds specs for answer's gallery

This commit is contained in:
rgarcia
2017-10-05 19:15:17 +02:00
parent de27530621
commit 6327bcb343
6 changed files with 41 additions and 13 deletions

View File

@@ -23,8 +23,7 @@ class Admin::Poll::Questions::Answers::ImagesController < Admin::Poll::BaseContr
private
def images_params
params.require(:poll_question_answer)
.permit(images_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy])
params.permit(images_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy])
end
def load_answer