A platform for community discussion. Free, open, simple.
FIX: external_id param can be an integer (#33675)
Jarek Radosz116b63145b63
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rbindex 84c69389c94..133e5b338a4 100644--- a/app/controllers/application_controller.rb+++ b/app/controllers/application_controller.rb@@ -282,7 +282,7 @@ class ApplicationController < ActionController::Baseshow_json_errors =(request.format && request.format.json?) || (request.xhr?) ||- ((params[:external_id] || "").ends_with? ".json")+ ((params[:external_id] || "").to_s.ends_with?(".json"))if type == :not_found && opts[:check_permalinks]url = opts[:original_path] || request.fullpath