Sha256: 2d94693f4c4cbaf4d55ad091f4446626f1d88915653f0d3c9e8c6b2a08c02d72
Contents?: true
Size: 370 Bytes
Versions: 79
Compression:
Stored size: 370 Bytes
Contents
class Relation::Public < Relation::Single PERMISSIONS = [ [ 'read', 'activity' ] ] # A {Relation::Public public relation} is always the weakest def <=>(relation) 1 end # Are we supporting custom permissions for {Relation::Public}? Not by the moment. def allow?(user, action, object) action == 'read' && object == 'activity' end end
Version data entries
79 entries across 79 versions & 2 rubygems