Commit 96f9d759 authored by Philip Cunningham's avatar Philip Cunningham Committed by Stan Hu

Refactor DastSiteProfilesController to use finder

parent 633b0d5a
...@@ -11,10 +11,7 @@ module Projects ...@@ -11,10 +11,7 @@ module Projects
end end
def edit def edit
@site_profile = @project @site_profile = DastSiteProfilesFinder.new(project_id: @project.id, id: params[:id]).execute.first! # rubocop: disable CodeReuse/ActiveRecord
.dast_site_profiles
.with_dast_site
.find(params[:id])
end end
end end
end end
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