nekomaho/task-controller

View on GitHub
app/controllers/concerns/login_user_task.rb

Summary

Maintainability
A
0 mins
Test Coverage
# check task that bloging login user
module LoginUserTask
  extend ActiveSupport::Concern
  def check_login_user_task?(task)
    current_user.id == Project.find(task.project_id).user_id
  end
end