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