Replace BlankSlate with BasicObject for Builder 3.0.0 compatibility (#40802).

Patch by Pavel Rosický (@ahorek).


git-svn-id: https://svn.redmine.org/redmine/trunk@22863 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-06-07 04:47:53 +00:00
parent c1335f5126
commit d909b82d32
2 changed files with 9 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ module Redmine
def initialize(request, response)
super
callback = request.params[:callback] || request.params[:jsonp]
if callback && Setting.jsonp_enabled?
if callback && ::Setting.jsonp_enabled?
self.jsonp = callback.to_s.gsub(/[^a-zA-Z0-9_.]/, '')
end
end