Sha256: edf11caf32831d2c64c750624257c89917cf66fb3fec1644565643b7c44804f3

Contents?: true

Size: 245 Bytes

Versions: 46

Compression:

Stored size: 245 Bytes

Contents

module WithAuthorization
  extend ActiveSupport::Concern

  def authorization_slug
    protection_slug || '_/_'
  end

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

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.22.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.21.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.20.1 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.20.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.19.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.18.1 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.18.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.17.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.16.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.15.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.14.1 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.14.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.13.2 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.13.1 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.13.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.12.1 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.12.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.11.0 app/controllers/concerns/with_authorization.rb
mumuki-laboratory-9.10.0 app/controllers/concerns/with_authorization.rb