Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] Allow admins delete poll answer documents #3231

Merged
merged 3 commits into from
Jan 24, 2019

Conversation

decabeza
Copy link
Collaborator

References

This is a backport of AyuntamientoMadrid#1841

Objectives

  • Allow admins delete poll answer documents.
  • Fix admin poll question answers documents layout, see attached images.

Visual Changes

BEFORE
before

AFTER
after

microweb10 and others added 3 commits January 24, 2019 19:19
We were linking to the document url itself, which does not have a route
associated and so the specs fails

With this commit we are using the correct path to the destroy action of
the DocumentsController.

We are also using the referrer instead of a params[:from] attribute, as
it avoids having to pass an extra parameter, making the code prettier
and it works the same way
@decabeza decabeza merged commit 4c511c5 into master Jan 24, 2019
@decabeza decabeza deleted the poll-answer-documents branch January 24, 2019 21:21
@decabeza decabeza self-assigned this Jan 24, 2019
@decabeza decabeza added this to Release 0.19 in Roadmap Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants