rubyforgood/casa

View on GitHub
app/policies/patch_note_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
57%
class PatchNotePolicy < ApplicationPolicy
  class Scope < ApplicationPolicy::Scope
    def initialize(user, scope)
      @user = user
      @scope = scope
    end

    def resolve
      scope.notes_available_for_user(@user)
    end
  end
end