Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
Removes ProjectsViolations#edit, which was replaced by #index
  • Loading branch information
JoeCohen committed Mar 17, 2024
1 parent d9218eb commit 2b8ecf2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/controllers/projects/violations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ class ViolationsController < ApplicationController
before_action :login_required
before_action :pass_query_params

def edit
return unless find_project!

@violations = @project.violations
end

def update
unless (@project = find_or_goto_index(Project, params[:project_id]))
return
Expand Down

0 comments on commit 2b8ecf2

Please sign in to comment.