Method: Integrity::Helpers::Authorization#unauthorized!
- Defined in:
- lib/integrity/helpers/authorization.rb
#unauthorized!(realm = authorization_realm) ⇒ Object
27 28 29 30 |
# File 'lib/integrity/helpers/authorization.rb', line 27 def (realm=) response["WWW-Authenticate"] = %(Basic realm="#{realm}") throw :halt, [401, show(:unauthorized, :title => "incorrect credentials")] end |