Sha256: 42ab57f182d295a18575bc3eb7758424765751441c4133997dffc41eae1414b9
Contents?: true
Size: 206 Bytes
Versions: 68
Compression:
Stored size: 206 Bytes
Contents
class PostPolicy < ApplicationPolicy class Scope < Struct.new(:user, :scope) def resolve scope end end def update? record.author == user end def destroy? update? end end
Version data entries
68 entries across 68 versions & 10 rubygems