Commit 685b68a0 authored by Kamil Trzciński's avatar Kamil Trzciński

Add `destroy` action

parent def89c5e
......@@ -39,6 +39,14 @@ class Projects::FeatureFlagsController < Projects::ApplicationController
end
end
def destroy
if feature_flag.destroy
flash[:notice] = 'Feature flag was successfully removed.'
end
redirect_to project_feature_flags_path(@project)
end
protected
def feature_flag
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment