Module: WithAuthorization

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/with_authorization.rb

Instance Method Summary collapse

Instance Method Details

#authorization_slugObject



4
5
6
# File 'app/controllers/concerns/with_authorization.rb', line 4

def authorization_slug
  protection_slug || '_/_'
end

#protection_slugObject



8
9
10
11
# File 'app/controllers/concerns/with_authorization.rb', line 8

def protection_slug
  warn "protection_slug is nil, which is not probably what you want" unless @slug
  @slug
end