Tuesday, 1 October 2013

Rails soft and hard delete actions

Rails soft and hard delete actions

If I have a model that supports soft deletes (for standard users) and
hard-deletes (for admins) what's the best best routing approach?
Does it make sense to handle both request under the same delete action in
the controller with logic in the method or does it make sense to have to
different routes?
Is a soft delete technically considered a delete action?
I know this is overcomplicating it but any advice would be appreciated.

No comments:

Post a Comment