lib/ballast/concerns/common.rb in ballast-1.1.0 vs lib/ballast/concerns/common.rb in ballast-1.1.1

- old
+ new

@@ -84,13 +84,10 @@ message ||= "To view this resource you have to authenticate." authenticated = authenticate_with_http_basic { |username, password| authenticator.call(username, password) } if !authenticated then headers["WWW-Authenticate"] = "Basic realm=\"#{area}\"" - @error_title = title - @error_code = 401 - @error_message = message - handle_error + handle_error({status: 401, title: title, message: message}) end end end end end \ No newline at end of file