We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad1b7b9 commit ada4617Copy full SHA for ada4617
app/controllers/application_controller.rb
@@ -20,7 +20,7 @@ def authorized
20
unless logged_in?
21
respond_to do |format|
22
format.html { redirect_to login_path, alert: "You must be logged in to perform that action." }
23
- format.json { render json: { error: "Unauthorized" }, status: :unauthorized }
+ format.json { render json: {error: "Unauthorized"}, status: :unauthorized }
24
end
25
26
0 commit comments