Sha256: 7a426e506ac9ae3ca0fdc5ad934c64206dfa5e4091dabc72797113c087e549f6
Contents?: true
Size: 433 Bytes
Versions: 6
Compression:
Stored size: 433 Bytes
Contents
module {{namespace_module}} module {{resource_module}} module Show class Authorizer include Shogun::Authorizer include {{resource_module}} def initialize(requester:, resource:) if requester @requester = requester.account end @resource = resource end def allowed? @requester == @resource end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems