class LocationPolicy
Public Instance Methods
Source
# File app/policies/location_policy.rb, line 4 def index? = team.has_point_of_care_access? def show? = team.has_point_of_care_access? class Scope < ApplicationPolicy::Scope def resolve scope.joins(:team_locations).where( team_locations: { academic_year: AcademicYear.pending, team: } ) end end
Source
# File app/policies/location_policy.rb, line 6 def show? = team.has_point_of_care_access? class Scope < ApplicationPolicy::Scope def resolve scope.joins(:team_locations).where( team_locations: { academic_year: AcademicYear.pending, team: } ) end end end