Skip to content

Commit

Permalink
Tidy up duplicated method
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamineskola committed Feb 18, 2025
1 parent cd19043 commit 11a756a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def redirect_failed_create_error(error)
redirect_to planning_application_review_tasks_path(@planning_application), alert: Array.wrap(error).to_sentence
end

def redirect_to_review_tasks
redirect_to planning_application_review_tasks_path(@planning_application)
end

def render_review_tasks
set_planning_application_constraints
set_neighbour_review
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ def activity_information
end
end

def redirect_to_review_tasks
redirect_to planning_application_review_tasks_path(@planning_application)
end

def cil_feature?
@planning_application.application_type.cil?
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ def review_params
.permit(:action, :comment, :review_status)
.merge(reviewer: current_user, reviewed_at: Time.current)
end

def redirect_to_review_tasks
redirect_to planning_application_review_tasks_path(@planning_application)
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ def review_params
.merge(reviewer: current_user, reviewed_at: Time.current)
end

def redirect_to_review_tasks
redirect_to planning_application_review_tasks_path(@planning_application)
end

def informatives_not_started?
@review.not_started?
end
Expand Down

0 comments on commit 11a756a

Please sign in to comment.