class Granted::Grant
Public Class Methods
grantee(grantee)
click to toggle source
# File lib/granted/models/grant.rb, line 10 def self.grantee(grantee) where(grantee_id: grantee.id, grantee_type: grantee.class.name) end
subject(subject)
click to toggle source
# File lib/granted/models/grant.rb, line 14 def self.subject(subject) where(subject_id: subject.id, subject_type: subject.class.name) end