Skip to content

Commit

Permalink
[#27] Standardrb
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmckissock committed Jul 2, 2024
1 parent ad1b7b9 commit ada4617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def authorized
unless logged_in?
respond_to do |format|
format.html { redirect_to login_path, alert: "You must be logged in to perform that action." }
format.json { render json: { error: "Unauthorized" }, status: :unauthorized }
format.json { render json: {error: "Unauthorized"}, status: :unauthorized }
end
end
end
Expand Down

0 comments on commit ada4617

Please sign in to comment.