class PatientPolicy::Scope
Public Instance Methods
Source
# File app/policies/patient_policy.rb, line 37 def resolve if team scope.joins(:patient_teams).where(patient_teams: { team_id: team.id }) else scope.none end end
# File app/policies/patient_policy.rb, line 37 def resolve if team scope.joins(:patient_teams).where(patient_teams: { team_id: team.id }) else scope.none end end