Skip to content

Commit

Permalink
improve readability and pro-parity
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBudz committed Sep 23, 2024
1 parent 42cd66a commit 81ee43b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class TasksController < AuthenticatedController
include ProjectScoped
include TasksHelper

skip_before_action :set_project, if: -> { params[:project_id].blank? }
skip_before_action :set_nodes, if: -> { params[:project_id].blank? }
skip_before_action :set_project, unless: -> { current_project }
skip_before_action :set_nodes, unless: -> { current_project }

def index
@default_columns = ['Title', 'Methodology', 'Due Date', 'Assigned']
Expand Down

0 comments on commit 81ee43b

Please sign in to comment.