Method: Devise::FailureApp#http_auth_body
- Defined in:
- lib/devise/failure_app.rb
#http_auth_body ⇒ Object (protected)
201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/devise/failure_app.rb', line 201 def http_auth_body return unless request_format method = "to_#{request_format}" if method == "to_xml" { error: }.to_xml(root: "errors") elsif {}.respond_to?(method) { error: }.send(method) else end end |