Allow actions to be unexecuted
Before actions could be marked as executed. With this commit we are also allowing actions to be marked as unexecuted.
This commit is contained in:
@@ -35,6 +35,14 @@ class Dashboard::ActionsController < Dashboard::BaseController
|
||||
redirect_to request.referer
|
||||
end
|
||||
|
||||
def unexecute
|
||||
authorize! :dashboard, proposal
|
||||
|
||||
Dashboard::ExecutedAction.where(proposal: proposal, action: dashboard_action).first.destroy
|
||||
|
||||
redirect_to request.referer
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def dashboard_action
|
||||
|
||||
Reference in New Issue
Block a user