Class: Devise::FailureApp
- Inherits:
-
ActionController::Metal
- Object
- ActionController::Metal
- Devise::FailureApp
- Defined in:
- lib/generators/templates/devise.rb
Instance Method Summary collapse
Instance Method Details
#http_auth ⇒ Object
146 147 148 149 150 151 |
# File 'lib/generators/templates/devise.rb', line 146 def http_auth self.status = 403 self.headers["WWW-Authenticate"] = %(Basic realm=#{Devise.http_authentication_realm.inspect}) self.content_type = request.format.to_s self.response_body = http_auth_body end |