Sha256: c0cfa7e4e7358ea4bf706c57bbdf48730b19bb04348244e3206b67b354a6aed2
Contents?: true
Size: 321 Bytes
Versions: 21
Compression:
Stored size: 321 Bytes
Contents
module WithAuthorization extend ActiveSupport::Concern def authorize_janitor! authorize! :janitor end def authorize_admin! authorize! :admin end def authorize_owner! authorize! :owner end def authorization_slug protection_slug || '_/_' end def protection_slug @slug end end
Version data entries
21 entries across 21 versions & 1 rubygems