IuryNogueira/myreef

View on GitHub
backend_v2/app/policies/aquarium_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
 
class AquariumPolicy < ApplicationPolicy
def index?
user.present?
end
 
class Scope < Scope
def resolve
scope.where(user:)
end
end
end