Sha256: 3ac59fb7c846e5e42da705f6f6b0e32c6d33eee59fbef92890d601f82c78a972
Contents?: true
Size: 435 Bytes
Versions: 6
Compression:
Stored size: 435 Bytes
Contents
module {{namespace_module}} module {{resource_module}} module Create 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